Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "dcos-diagnostics", Short: "DC/OS diagnostics service", Long: `DC/OS diagnostics service provides health information about cluster. dcos-diagnostics daemon start an http server and polls the components health. `, Run: func(cmd *cobra.Command, args []string) { if version { fmt.Printf("Version: %s-%s\n", config.Version, config.Commit) os.Exit(0) } if diag { os.Exit(runDiag()) } cmd.Help() }, PersistentPreRun: func(cmd *cobra.Command, args []string) { if defaultConfig.FlagVerbose { logrus.SetLevel(logrus.DebugLevel) } logrus.Infof("Log level: %s (%t)", logrus.GetLevel(), defaultConfig.FlagVerbose) }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.