Documentation
¶
Index ¶
- func AddCommand(rootCmd *cobra.Command, cmd *cobra.Command)
- type Cli
- func (c *Cli) AddCommand(cmd *cobra.Command)
- func (c *Cli) AddCommands(cmds []CommandFunc)
- func (c *Cli) Execute()
- func (c *Cli) Get(key string) interface{}
- func (c *Cli) GetBool(key string) bool
- func (c *Cli) GetInt(key string) int
- func (c *Cli) GetInt64(key string) int64
- func (c *Cli) GetString(key string) string
- func (c *Cli) GetViper() *viper.Viper
- func (c *Cli) Init(flagSetFunc func(viper *viper.Viper, flags *pflag.FlagSet), ...) error
- func (c *Cli) RootCmd() *cobra.Command
- func (c *Cli) RunE(runE func(cmd *cobra.Command, args []string) error)
- type CommandFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func (*Cli) AddCommand ¶
func (*Cli) AddCommands ¶
func (c *Cli) AddCommands(cmds []CommandFunc)
type CommandFunc ¶
Click to show internal directories.
Click to hide internal directories.