mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-07-02 18:21:48 +00:00
add some TODOs
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
1284b822a5
commit
5b3796ba1c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user