From e4e4e0f5bc997ecb499fbe84719a2f2eeb199ee6 Mon Sep 17 00:00:00 2001 From: mitchell Date: Tue, 17 Sep 2019 02:19:40 -0400 Subject: [PATCH] Auto-select sole credential for source --- sp/commands/commands.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sp/commands/commands.go b/sp/commands/commands.go index efe1ecf..7f4cf49 100644 --- a/sp/commands/commands.go +++ b/sp/commands/commands.go @@ -141,6 +141,11 @@ receive: keyIDMap[key] = md.ID } + if len(keys) == 1 { + primary = keys[0] + fmt.Printf("Selecting sole credential for this source.\n\n") + } + if primary == "" { var idKey string prompt = &survey.Select{