Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "ns", Usage: "set default namespace for current context", ArgsUsage: "[NAMESPACE]", Flags: []cli.Flag{ &cli.StringFlag{ Name: "kubeconfig", Usage: "path to kubeconfig from where export context", }, &cli.StringFlag{ Name: "context", Aliases: []string{"c"}, Usage: "context for which you want to change namespace", }, }, Action: func(cCtx *cli.Context) error { namespace := cCtx.Args().First() if namespace != "" { return directChange(cCtx, namespace) } else { return showTUI(cCtx) } }, }
Functions ¶
This section is empty.
Types ¶
type NamespaceItem ¶
type NamespaceItem struct {
Name string
}
func (NamespaceItem) FilterValue ¶
func (i NamespaceItem) FilterValue() string
func (NamespaceItem) Title ¶
func (i NamespaceItem) Title() string
Click to show internal directories.
Click to hide internal directories.