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-cli-add - Add a command to a Cobra Application

Aliases

add, command

Description

       Add (cobra-cli 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-cli add server -> resulting in a new cmd/server.go

Name

       cobra-cli-add - Add a command to a Cobra Application

Options

-h, --help
              help for add

       -p, --parentstring
              variable name of parent command for this command (default “rootCmd”)

Options Inherited From Parent Command

-a, --authorstring
              author name for copyright attribution (default “YOUR NAME”)

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

       -l, --licensestring
              name of license for the project

       --viper
              Use Viper for configuration

See Also

cobra-cli(1), cobra-cli-init(1)

github.com/spf13/cobra-cli                          Mar 2022                                    COBRA-CLI-ADD(1)

Synopsis

cobraadd [COMMANDNAME] [OPTIONS]

See Also