From 98b22f1e0b0f5e85b71d344041265efa95e1bb91 Mon Sep 17 00:00:00 2001 From: Spencer Smith Date: Thu, 25 Mar 2021 09:20:50 -0400 Subject: [PATCH] feat: show short options in talosctl kubeconfig This PR just fixes a teeny usability problem I saw yesterday with Steve, where it's not immediately clear that you don't have to type the entire word when you encounter an existing context when pulling kubeconfig. Signed-off-by: Spencer Smith --- cmd/talosctl/cmd/talos/kubeconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/talosctl/cmd/talos/kubeconfig.go b/cmd/talosctl/cmd/talos/kubeconfig.go index 5d06479256..909b5036a0 100644 --- a/cmd/talosctl/cmd/talos/kubeconfig.go +++ b/cmd/talosctl/cmd/talos/kubeconfig.go @@ -166,7 +166,7 @@ func askOverwriteOrRename(prompt string) (kubeconfig.ConflictDecision, error) { reader := bufio.NewReader(os.Stdin) for { - fmt.Printf("%s [rename/overwrite]: ", prompt) + fmt.Printf("%s [(r)ename/(o)verwrite]: ", prompt) response, err := reader.ReadString('\n') if err != nil {