Documentation ¶
Index ¶
- Constants
- func CLIStringSliceToStringSlice(origSlice []string, newSlice *[]string)
- func EnsureBinary(log logrus.FieldLogger, ...) (string, error)
- func GetYesOrNoInput(ctx context.Context) (bool, error)
- func NewDescription(desc, examples string) string
- func Normalize(s string) string
- func RunKubernetesCommand(ctx context.Context, wd string, onlyOutputOnError bool, name string, ...) error
Constants ¶
View Source
const ( Indentation = " " LineLen = 80 )
Variables ¶
This section is empty.
Functions ¶
func EnsureBinary ¶
func EnsureBinary(log logrus.FieldLogger, name, downloadDesc, downloadURL, archiveFileName string) (string, error)
EnsureBinary downloads a binary if it's not found, based on the name of the binary otherwise it returns the path to it.
func NewDescription ¶
NewDescription creates a description from a long desc and examples. This also formats them and normalizes the formatting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.