jschuur / chatgpt-repl

Interactive CLI for ChatGPT
https://npmjs.com/package/chatgpt-repl
13 stars 0 forks source link

Refactor: Improve REPL input command parsing #51

Closed jschuur closed 1 year ago

jschuur commented 1 year ago

Is there a third party library that would easily parse commands from the REPL and automatically create help text? Something like commander that I can use to pipe in anything that starts with a dot?

Could I just use commander? (see discussion here and here)

Otherwise, go for a simple way to list arguments to a command in the help text:

jschuur commented 1 year ago

Didn't go the commander route, but just modified the .help listing to show optional subcommands.

Completed for 0.6.0