Subcommands #1

Closed
opened 2023-08-11 08:37:43 +02:00 by juk0de · 1 comment
Collaborator

Switching from using argparse options to actual sub-commands would provide a cleaner user interface and make it easier to extend cmm.

List of new sub-commands and their functionality

  • ask
    • ask a question
    • implements current options: -q, n, -m, -t, -T, -c, -a, -e, -o, -s, -S
  • hist
    • printing / managing the chat history
    • implements current options: -d, -D, -w, -W
    • Note: the term chat should be reserved for a possible later "chat-like" feature
  • tag
    • manage tags
    • implements current options: -l
    • possible future options: -r (rename tag), -d (delete tag)
  • config
    • manage configuration (print and set config parameters)
    • implements current options: -L
  • print
    • print files
    • implements current options: -p, -S
Switching from using `argparse` options to actual [sub-commands](https://docs.python.org/3/library/argparse.html#sub-commands) would provide a cleaner user interface and make it easier to extend `cmm`. ### List of new sub-commands and their functionality * `ask` * ask a question * implements current options: `-q`, `n`, `-m`, `-t`, `-T`, `-c`, `-a`, `-e`, `-o`, `-s`, `-S` * `hist` * printing / managing the chat history * implements current options: `-d`, `-D`, `-w`, `-W` * Note: the term `chat` should be reserved for a possible later "chat-like" feature * `tag` * manage tags * implements current options: `-l` * possible future options: `-r` (rename tag), `-d` (delete tag) * `config` * manage configuration (print and set config parameters) * implements current options: `-L` * `print` * print files * implements current options: `-p`, `-S`
juk0de self-assigned this 2023-08-12 10:33:33 +02:00
juk0de added reference subcommands 2023-08-12 10:33:43 +02:00
Owner

Implemented in #2.

Implemented in #2.
ok closed this issue 2023-08-12 13:37:13 +02:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kaizenkodo/ChatMastermind#1
No description provided.