Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "kn [<namespace>]", Short: "Simple embdeded kubens", Args: cobra.MaximumNArgs(1), Run: func(c *cobra.Command, args []string) { if len(args) == 0 { exec_utils.ExecOut("kubectl", "get", "namespaces", "-o", `jsonpath={range .items[*]}{.metadata.name}{"\n"}{end}`) } else { exec_utils.ExecOut("kubectl", "config", "set-context", "--current", "--namespace", args[0]) } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.