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 int
const ( Create Subcommand = iota + 1 Expose Run Set Explain Get Edit Delete Rollout Scale Autoscale Certificate ClusterInfo Top Cordon Uncordon Drain Taint Describe Logs Attach Exec PortForward Proxy Cp Auth Diff Apply Patch Replace Wait Convert Kustomize Label Annotate Completion APIResources APIVersions Config Plugin Version Options Ctx Ns )
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 Short bool IsKrew bool }
func InspectSubcommandInfo ¶
func InspectSubcommandInfo(args []string) (*SubcommandInfo, bool)
TODO: return shouldColorize = false when the given args is for plugin
Click to show internal directories.
Click to hide internal directories.