Add automatic selection message even when there is only one choice
parent
416f132ebb
commit
e46502cfed
|
@ -549,6 +549,8 @@ func selectDriver(oldConfig *cfg.Config) string {
|
|||
pick, alts := driver.Choose(options)
|
||||
if len(options) > 1 {
|
||||
out.T(out.Sparkle, `Automatically selected the '{{.driver}}' driver (alternates: {{.alternates}})`, out.V{"driver": pick.Name, "alternates": alts})
|
||||
} else {
|
||||
out.T(out.Sparkle, `Automatically selected the '{{.driver}}' driver`, out.V{"driver": pick.Name})
|
||||
}
|
||||
|
||||
if pick.Name == "" {
|
||||
|
|
Loading…
Reference in New Issue