module
0.0.0-20200320151736-40d38c556506
Repository: https://github.com/n3wscott/cli-base.git
Documentation: pkg.go.dev
# README
cli-base
cli-base
is template for CLI generation.
Work in progress.
Installation
cli-base
can be installed via:
go get github.com/n3wscott/cli-base/cmd/cli
To update your installation:
go get -u github.com/n3wscott/cli-base/cmd/cli
Usage
cli
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
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.
Bar
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!")