Documentation ¶
Index ¶
- func BaseCfg() (_ *rpc.ClientCfg, err error)
- func BindEnvs(envMap map[string]string, cmdName string) (err error)
- func DryRun() bool
- func Execute()
- func FlagInfo(info, cmdPrefix, envName string) string
- func RootCmd() *cobra.Command
- func ServiceAddr() string
- func SubCmdNeeded(cmd *cobra.Command)
- func TLSPath() string
- type ClientFlags
- type RootFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindEnvs ¶
BindEnvs calls viper.BindEnv with envMap and cmdName which can be empty if flag is general.
func DryRun ¶
func DryRun() bool
DryRun returns a value of a dry run flag. That's a helper function to extend this CLI with own commands and offering same base commands as this CLI.
func RootCmd ¶
RootCmd returns a current root command which can be used for adding own commands in an own repo.
implCmd.AddCommand(listCmd)
That's a helper function to extend this CLI with own commands and offering same base commands as this CLI.
func ServiceAddr ¶
func ServiceAddr() string
func SubCmdNeeded ¶
SubCmdNeeded prints the help and error messages because the cmd is abstract.
Types ¶
type ClientFlags ¶
ClientFlags agent flags
Click to show internal directories.
Click to hide internal directories.