mirror of https://github.com/mitchell/selfpass.git
Auto-select sole credential for source
This commit is contained in:
parent
e136b40b70
commit
e4e4e0f5bc
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue