Skip to content

Commit

Permalink
feat: show short options in talosctl kubeconfig
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rsmitty committed Mar 25, 2021
1 parent 711f5b2 commit bed77ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/talosctl/cmd/talos/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bed77ec

Please sign in to comment.