Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CoffeeBreakCmd = &cobra.Command{ Use: "coffee-break", Short: "This command will send slack message to channel for RHTAP QE coffee breaks monthly.", PreRunE: func(cmd *cobra.Command, args []string) error { requiredEnvVars := []string{"slack_token", "hacbs_channel_id"} for _, e := range requiredEnvVars { if viper.GetString(e) == "" { return fmt.Errorf("%+v env var not set", strings.ToUpper(e)) } } return nil }, Run: run, }
CoffeeBreakCmd returns the coffee-break command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.