mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-07-03 02:26:12 +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)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
case ListOp:
|
case ListOp:
|
||||||
|
// TODO fzf installed show interactive selection
|
||||||
|
|
||||||
if err := printListContexts(os.Stdout); err != nil {
|
if err := printListContexts(os.Stdout); err != nil {
|
||||||
printError("%v", err)
|
printError("%v", err)
|
||||||
os.Exit(1)
|
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 {
|
if err := resetFile(f); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := saveKubeconfigRaw(f, rootNode); err != nil {
|
if err := saveKubeconfigRaw(f, rootNode); err != nil {
|
||||||
return errors.Wrap(err, "failed to save modified kubeconfig")
|
return errors.Wrap(err, "failed to save modified kubeconfig")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user