Documentation ¶
Index ¶
- func Execute()
- func NewRootCMD() *cobra.Command
- func RunCmd(v *viper.Viper, verbose bool, sendDiagsOnErrors bool, cmd cmdFn) error
- func RunCmdWithOfflineSync(v *viper.Viper, verbose bool, sendDiagsOnErrors bool, cmd cmdFn) error
- func RunE(cmd *cobra.Command, v *viper.Viper) error
- func SetupLogging(v *viper.Viper) (*logfile.Params, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewRootCMD ¶
NewRootCMD creates a rootCmd, which represents the base command when called without any subcommands.
func RunCmd ¶ added in v1.30.3
RunCmd runs a command function and exits with the exit code returned by the command function. Will send diagnostic on any errors or panics.
func RunCmdWithOfflineSync ¶ added in v1.30.3
RunCmdWithOfflineSync runs a command function and exits with the exit code returned by the command function. If command run was successful, it will execute offline sync command afterwards. Will send diagnostic on any errors or panics.
Types ¶
This section is empty.