(name string)
| 66 | } |
| 67 | |
| 68 | func (cli *CLI) SetCurrentContext(name string) error { |
| 69 | if _, ok := cli.Config.Contexts[name]; !ok { |
| 70 | return api.ErrNotFound |
| 71 | } |
| 72 | cli.Config.CurrentContext = name |
| 73 | return cli.Config.Save() |
| 74 | } |
| 75 | |
| 76 | func (cli *CLI) ContextOverrideOrCurrent() string { |
| 77 | if cli.contextOverride != "" { |
no test coverage detected