cmdutil

package
v0.0.0-...-35b42f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigFlag

func AddConfigFlag(cmd *cobra.Command)

AddConfigFlag adds the config flag to cmd.

func AddGlobalFlags

func AddGlobalFlags(cmd *cobra.Command)

AddGlobalFlags adds globally available flags to cmd.

func BindManagerFlags

func BindManagerFlags(cmd *cobra.Command, o *cluster.Options)

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.

func GetString

func GetString(cmd *cobra.Command, flag string) string

GetString retrieves a string flag from cmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL