Enable interactive mode only if flags aren't passed

This commit is contained in:
rista404 2020-04-23 12:20:54 +02:00
parent a7931a07c9
commit 4b32e3f215
No known key found for this signature in database
GPG key ID: 74AE4D182C83962A

View file

@ -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)