Versions in this module Expand all Collapse all v1 v1.0.0 Jun 3, 2021 Changes in this version + func AddCommand(rootCmd *cobra.Command, cmd *cobra.Command) + type Cli struct + func NewCli(use, version, welcome string) *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 func(c *Cli) *cobra.Command