fix: take care of -n here

This commit is contained in:
decentral1se 2021-12-19 23:36:03 +01:00
parent 88d4984248
commit 66666e30b7
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
var createTagOptions git.CreateTagOptions var createTagOptions git.CreateTagOptions
createTagOptions.Message = internal.TagMessage createTagOptions.Message = internal.TagMessage
if !internal.Commit { if !internal.Commit && !internal.NoInput {
prompt := &survey.Confirm{ prompt := &survey.Confirm{
Message: "git commit changes also?", Message: "git commit changes also?",
} }
@ -130,7 +130,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
} }
} }
if !internal.Push { if !internal.Push && !internal.NoInput {
prompt := &survey.Confirm{ prompt := &survey.Confirm{
Message: "git push changes also?", Message: "git push changes also?",
} }
@ -149,7 +149,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
logrus.Fatal(err) logrus.Fatal(err)
} }
if internal.CommitMessage == "" { if internal.CommitMessage == "" && !internal.NoInput {
prompt := &survey.Input{ prompt := &survey.Input{
Message: "commit message", Message: "commit message",
Default: fmt.Sprintf("chore: publish new %s version", internal.GetBumpType()), Default: fmt.Sprintf("chore: publish new %s version", internal.GetBumpType()),