Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectCommandlineOptions ¶
func CollectCommandlineOptions(args []string, info *SubcommandInfo)
Types ¶
type Subcommand ¶
type Subcommand string
const ( Unknown Subcommand = "" KubectlPlugin Subcommand = "(plugin)" InternalComplete Subcommand = "__complete" APIResources Subcommand = "api-resources" APIVersions Subcommand = "api-versions" Annotate Subcommand = "annotate" Apply Subcommand = "apply" Attach Subcommand = "attach" Auth Subcommand = "auth" Autoscale Subcommand = "autoscale" Certificate Subcommand = "certificate" ClusterInfo Subcommand = "cluster-info" Completion Subcommand = "completion" Config Subcommand = "config" Convert Subcommand = "convert" Cordon Subcommand = "cordon" Cp Subcommand = "cp" Create Subcommand = "create" Ctx Subcommand = "ctx" Debug Subcommand = "debug" Delete Subcommand = "delete" Describe Subcommand = "describe" Diff Subcommand = "diff" Drain Subcommand = "drain" Edit Subcommand = "edit" Events Subcommand = "events" Exec Subcommand = "exec" Explain Subcommand = "explain" Expose Subcommand = "expose" Get Subcommand = "get" Kustomize Subcommand = "kustomize" Label Subcommand = "label" Logs Subcommand = "logs" Ns Subcommand = "ns" Options Subcommand = "options" Patch Subcommand = "patch" Plugin Subcommand = "plugin" PortForward Subcommand = "port-forward" Proxy Subcommand = "proxy" Replace Subcommand = "replace" Rollout Subcommand = "rollout" Run Subcommand = "run" Scale Subcommand = "scale" Set Subcommand = "set" Taint Subcommand = "taint" Top Subcommand = "top" Uncordon Subcommand = "uncordon" Version Subcommand = "version" Wait Subcommand = "wait" // oc (OpenShift CLI) specific subcommands Rsh Subcommand = "rsh" )
func InspectSubcommand ¶
func InspectSubcommand(command string) (Subcommand, bool)
type SubcommandInfo ¶
type SubcommandInfo struct { Subcommand Subcommand FormatOption FormatOption NoHeader bool Watch bool Help bool Recursive bool Client bool }
func InspectSubcommandInfo ¶
func InspectSubcommandInfo(args []string) (*SubcommandInfo, bool)
Click to show internal directories.
Click to hide internal directories.