logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cobra-add - Add a command to a Cobra Application

Description

       Add (cobra add) will create a new command, with a license and the appropriate structure for a Cobra-based
       CLI application, and register it to its parent (default RootCmd).

       If you want your command to be public, pass in the command name with an initial uppercase letter.

       Example: cobra add server  -> resulting in a new cmd/server.go

Name

       cobra-add - Add a command to a Cobra Application

Options

-p, --parent="RootCmd"
           name of parent command for this command

Options Inherited From Parent Commands

-a, --author="YOUR NAME"
           Author name for copyright attribution

       --config=""
           config file (default is $HOME/.cobra.yaml)

       -l, --license=""
           Name of license for the project (can provide licensetext in config)

       -b, --projectbase=""
           base project directory, e.g. github.com/spf13/

       --viper[=true]
           Use Viper for configuration

See Also

cobra(1)

github.com/spf13/cobra                              Dec 2015                                        COBRA-ADD(1)

Synopsis

cobraadd [OPTIONS]

See Also