Disable interactive only if both flags are passed
Co-authored-by: Mislav Marohnić <mislav@github.com>
This commit is contained in:
parent
76c73db5a0
commit
1f9b7c0fe0
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ func issueCreate(cmd *cobra.Command, args []string) error {
|
|||
|
||||
action := SubmitAction
|
||||
|
||||
interactive := !cmd.Flags().Changed("title") && !cmd.Flags().Changed("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