diff --git a/cmd/kubectx/main.go b/cmd/kubectx/main.go index 65a4f00..09d3ca8 100644 --- a/cmd/kubectx/main.go +++ b/cmd/kubectx/main.go @@ -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) diff --git a/cmd/kubectx/rename.go b/cmd/kubectx/rename.go index b8ba3dd..aad6a91 100644 --- a/cmd/kubectx/rename.go +++ b/cmd/kubectx/rename.go @@ -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 }