CaravanaCloud / up

Delivering unified and pluggable container solutions
MIT No Attribution
17 stars 1 forks source link

CLI Improvements #17

Closed fabiobarkoski closed 8 months ago

fabiobarkoski commented 8 months ago

Created the basics of the CLI to up. Below, the implementations made to the CLI:

Details

standard way to create commands and options

with that, the developer can create a command as simple as creating a function in upcli

--help and example usage

when the user type:

$ up --help

or

$ up

Show the commands, options and example usage of up to the user. Such as:

$ up
Up (version x.x.x)

Usage:
  command [options] [arguments]

Options:
  -h, --help                 Display help for the given command. When no command is given display help for the list command.
  -V, --version              Display this application version.
  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.

Available commands:
  list             list installed plugins.
  prompts    show a brief summary of the prompts from a plugin
  details       show the details of a prompt from a plugin

And of course, the --help option for each up command, e.g:

$ up plugin prompts -h
Usage:
  up plugin prompts [plugin name]

Example:
  up plugin prompts ansible