Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AgencyCmd = &cobra.Command{ Use: "agency", Short: "Parent command for starting and pinging agency", Long: ` Parent command for starting and pinging agency `, Run: func(cmd *cobra.Command, _ []string) { SubCmdNeeded(cmd) }, }
AgencyCmd represents the agency command
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 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.