Skip to content
/ cli-base Public template

A command line interaction project template.

License

Notifications You must be signed in to change notification settings

n3wscott/cli-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-base

cli-base is template for CLI generation.

GoDoc Go Report Card

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!")

About

A command line interaction project template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages