Documentation
¶
Overview ¶
Package cli provides commands to use Kocho.
Index ¶
Constants ¶
View Source
const ( LabelToken = "Slack token" LabelUsername = "Your username" LabelNotificationUsername = "Bot username (optional)" LabelEmoji = "Bot emoji (optional)" LabelNotificationChannel = "Notification channel" )
Constants related to Slack.
Variables ¶
View Source
var ( // ConfigHomePath defines where to load configuration files from. ConfigHomePath = os.Getenv("HOME") + "/.giantswarm/" )
Functions ¶
Types ¶
type Command ¶
type Command struct { Name string // Name of the Command and the string to use to invoke it Summary string // One-sentence summary of what the Command does Usage string // Usage options/arguments Description string // Detailed description of command Flags pflag.FlagSet // Set of flags associated with this command Run func(args []string) int // Run a command with the given arguments, return exit status }
Command describes a command that can be run.
type KochoConfiguration ¶
KochoConfiguration holds Viper configuration.
Click to show internal directories.
Click to hide internal directories.