Implement interactive mode.
The user should have a banner with the available actions, which he can either type the name (like a bash command) or a shortcut (underlined or in parenthesis), or the number of the action.
Then, execute the selected action, display any output information to the user and prompt again.
Long actions (eg: download/upload) should happen async. The user can see the current status on each prompt refresh.
Actions :
Certain actions (like settings) could open a sub-prompt, with different actions to choose from. Using help would only show theses new actions, and choosing exit would only exit the sub-prompt.
Implement interactive mode.
The user should have a banner with the available actions, which he can either type the name (like a bash command) or a shortcut (underlined or in parenthesis), or the number of the action.
Then, execute the selected action, display any output information to the user and prompt again.
Long actions (eg: download/upload) should happen async. The user can see the current status on each prompt refresh.
Actions :
list-files
send-file
receive-file
settings (edit Config)
enable/disable server
connect (to a different client)
exit
help
Certain actions (like settings) could open a sub-prompt, with different actions to choose from. Using
helpwould only show theses new actions, and choosingexitwould only exit the sub-prompt.