mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-13 14:29:03 +00:00
@@ -28,6 +28,8 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
case ListOp:
|
||||
// TODO fzf installed show interactive selection
|
||||
|
||||
if err := printListContexts(os.Stdout); err != nil {
|
||||
printError("%v", err)
|
||||
os.Exit(1)
|
||||
|
@@ -59,13 +59,13 @@ func renameContexts(old, new string) error {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO the next two functions are always repeated.
|
||||
if err := resetFile(f); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := saveKubeconfigRaw(f, rootNode); err != nil {
|
||||
return errors.Wrap(err, "failed to save modified kubeconfig")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user