feat: auto select single server

See toolshed/organising#513
This commit is contained in:
2025-04-21 21:06:29 +02:00
parent 515b5466ca
commit d081bbaefa
2 changed files with 13 additions and 0 deletions

View File

@ -302,6 +302,12 @@ func ensureServerFlag() error {
return err
}
if len(servers) == 1 {
newAppServer = servers[0]
log.Infof("single server detected, choosing %s automatically", newAppServer)
return nil
}
if newAppServer == "" && !internal.NoInput {
prompt := &survey.Select{
Message: "Select app server:",