Created the basics of the CLI to up. Below, the implementations made to the CLI:
[x] standard way to create commands and options
[x] --help/-h for up and up commands
[x] commands/options documentation
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
Created the basics of the CLI to
up
. Below, the implementations made to the CLI:up
andup
commandsDetails
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:
or
Show the commands, options and example usage of
up
to the user. Such as:And of course, the --help option for each
up
command, e.g: