add some TODOs

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2020-04-10 16:41:21 -07:00
parent 1284b822a5
commit 5b3796ba1c
No known key found for this signature in database
GPG Key ID: 441833503E604E2C
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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
}