util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptionTemplate = `` /* 142-byte string literal not displayed */
View Source
var UsageTemplate = fmt.Sprintf(`%v:{{if .Runnable}}
  kubectl {{.UseLine}}{{end}}{{if .HasAvailableSubCommands}}
  {{.CommandPath}} [command]{{end}}{{if gt (len .Aliases) 0}}
%v:
  {{.NameAndAliases}}{{end}}{{if .HasExample}}
%v:
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}{{end}}
%v:
  -h, --help                   Display this help message
  -n, --namespace string       Change the namespace scope for this CLI request
  -l, --selector=''            Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
      --sort-by=''             If non-empty, sort nodes list using specified field. The field can be either 'cpu' or 'memory'.
  -t, --type string            Type information hierarchically (default: All Type) [possible values: cpu, memory, pod]
  -o, --options                List of all options for this command
      --version                Show version for this command
Use "kubectl resource --options" for a list of all options (applies to this command).
`,
	aurora.Cyan("Usage"),
	aurora.Cyan("Aliases"),
	aurora.Cyan("Available Commands"),
	aurora.Cyan("Options"))
View Source
var VersionTemplate = fmt.Sprintf(` %v {{.Name}} version {{.Version}}
`, aurora.Yellow(">"))

Functions

func CheckErr

func CheckErr(err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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