Documentation
¶
Index ¶
- func AddConfigFlag(cmd *cobra.Command)
- func AddGlobalFlags(cmd *cobra.Command)
- func BindManagerFlags(cmd *cobra.Command, o *cluster.Options)
- func BindProvisionerFlags(cmd *cobra.Command, o *provisioner.Options)
- func CheckErr(err error)
- func ConfigureLogging()
- func GetString(cmd *cobra.Command, flag string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigFlag ¶
AddConfigFlag adds the config flag to cmd.
func AddGlobalFlags ¶
AddGlobalFlags adds globally available flags to cmd.
func BindManagerFlags ¶
BindManagerFlags binds flags to options.
func BindProvisionerFlags ¶
func BindProvisionerFlags(cmd *cobra.Command, o *provisioner.Options)
BindProvisionerFlags binds flags to provisioner options.
func CheckErr ¶
func CheckErr(err error)
CheckErr logs err and exits with a non-zero code. If err is of type *exec.ExitError, the exit code from the error will be used. If err is nil, CheckErr does nothing.
func ConfigureLogging ¶
func ConfigureLogging()
ConfigureLogging configures the standard logger based on the values of parsed cli flags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.