fix: take care of -n here
This commit is contained in:
parent
88d4984248
commit
66666e30b7
|
@ -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()),
|
||||||
|
|
Loading…
Reference in New Issue