cli-base is template for CLI generation.
Work in progress.
cli-base can be installed via:
go get github.com/n3wscott/cli-base/cmd/cliTo update your installation:
go get -u github.com/n3wscott/cli-base/cmd/clicli has two commands, foo and bar
Interact via the command line.
Usage:
cli [command]
Available Commands:
bar Say hello!
foo Foo a thing.
help Help about any command
Flags:
-h, --help help for cli
Use "cli [command] --help" for more information about a command.Foo a thing.
Usage:
cli foo [flags]
cli foo [command]
Available Commands:
list Get a list of foo.
Flags:
-h, --help help for foo
Use "cli foo [command] --help" for more information about a command.Say hello!
Usage:
cli bar [flags]
Examples:
cli-base bar hello --name=example
Flags:
-h, --help help for bar
--json Output as JSON.
--name string Bar Name to use. (default "World!")