fix: server/record improved output + interactivity

This commit is contained in:
2021-10-25 09:02:24 +02:00
parent 2d091a6b00
commit a7970132c2
7 changed files with 68 additions and 39 deletions

View File

@ -391,7 +391,7 @@ You may omit flags to avoid performing this provisioning logic.
internal.ShowSubcommandHelpAndError(c, err)
}
if sshAuth != "password" || sshAuth != "identity-file" {
if sshAuth != "password" && sshAuth != "identity-file" {
err := errors.New("--ssh-auth only accepts 'identity-file' or 'password'")
internal.ShowSubcommandHelpAndError(c, err)
}
@ -403,7 +403,10 @@ You may omit flags to avoid performing this provisioning logic.
return nil
}
domainName := internal.ValidateDomain(c)
domainName, err := internal.ValidateDomain(c)
if err != nil {
logrus.Fatal(err)
}
if err := createServerDir(domainName); err != nil {
logrus.Fatal(err)