Auto-select sole credential for source

This commit is contained in:
mitchell 2019-09-17 02:19:40 -04:00
parent e136b40b70
commit e4e4e0f5bc
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ receive:
keyIDMap[key] = md.ID keyIDMap[key] = md.ID
} }
if len(keys) == 1 {
primary = keys[0]
fmt.Printf("Selecting sole credential for this source.\n\n")
}
if primary == "" { if primary == "" {
var idKey string var idKey string
prompt = &survey.Select{ prompt = &survey.Select{