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-init - Initialize a Cobra Application

Description

       Initialize (cobra init) will create a new application, with a license and the appropriate structure for a
       Cobra-based CLI application.

       • If a name is provided, it will be created in the current directory;

       • If no name is provided, the current directory will be assumed;

       • If a relative path is provided, it will be created inside $GOPATH (e.g. github.com/spf13/hugo);

       • If an absolute path is provided, it will be created;

       • If the directory already exists but is empty, it will be used.

       Init will not use an existing directory with contents.

Name

       cobra-init - Initialize a Cobra Application

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-INIT(1)

Synopsis

cobrainit [OPTIONS]

See Also