Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cli.Command{ Name: "rm", Usage: "remove given context", ArgsUsage: "[CONTEXT]", Flags: []cli.Flag{ &cli.StringFlag{ Name: "kubeconfig", Usage: "path to kubeconfig from where export context", }, }, Action: func(cCtx *cli.Context) error { contextName := cCtx.Args().First() kc, err := kconf.Open(cCtx.String("kubeconfig")) if err != nil { return err } kc.Remove(contextName) err = kc.Save() if err != nil { return err } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.