Enable interactive mode only if flags aren't passed
This commit is contained in:
parent
a7931a07c9
commit
4b32e3f215
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ func issueCreate(cmd *cobra.Command, args []string) error {
|
|||
|
||||
action := SubmitAction
|
||||
|
||||
interactive := title == "" || body == ""
|
||||
interactive := !cmd.Flags().Changed("title") || !cmd.Flags().Changed("body")
|
||||
|
||||
if interactive {
|
||||
tb, err := titleBodySurvey(cmd, title, body, defaults{}, templateFiles)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue