Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "bouncer", Short: "An app that bounces AWS instances in the given ASGs.", Long: `Bounces AWS instances that are due to be cycled in the ASGs passed-in.`, PersistentPreRun: func(cmd *cobra.Command, args []string) { if versionFlag { fmt.Println(version) os.Exit(0) } switch cmdName := cmd.Name(); cmdName { case "serial": log.SetFormatter(&log.TextFormatter{}) log.SetOutput(os.Stdout) } }, RunE: func(cmd *cobra.Command, args []string) error { return errors.New("You must provide a command") }, }
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.