Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "", PersistentPreRun: func(ccmd *cobra.Command, args []string) { debug, err := ccmd.Flags().GetBool("verbose") if err != nil { log.WithError(err).Error("failed to parse verbose flag") os.Exit(1) return } if debug { log.SetLevel(log.DebugLevel) } }, Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.