aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bug/bug_comment_add.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-27 17:31:32 +0100
committerGitHub <noreply@github.com>2022-12-27 17:31:32 +0100
commit8cea6c7515e42cb8821a03c9bfebb0a8f63a01be (patch)
tree2eaf6c403e0f6e8bf1fd1327afd275a226d93f1f /commands/bug/bug_comment_add.go
parent4c7043e8ed994d7863cfd706f6cfd2e1f91850df (diff)
parentd5b07f48376cef9f62e12e3b56bcdd7483ef588f (diff)
downloadgit-bug-8cea6c7515e42cb8821a03c9bfebb0a8f63a01be.tar.gz
Merge pull request #960 from MichaelMure/inputs
commands: move bug specific input code into commands/bug/input
Diffstat (limited to 'commands/bug/bug_comment_add.go')
-rw-r--r--commands/bug/bug_comment_add.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/bug/bug_comment_add.go b/commands/bug/bug_comment_add.go
index b676db3a..b445ffad 100644
--- a/commands/bug/bug_comment_add.go
+++ b/commands/bug/bug_comment_add.go
@@ -3,10 +3,10 @@ package bugcmd
import (
"github.com/spf13/cobra"
+ buginput "github.com/MichaelMure/git-bug/commands/bug/input"
"github.com/MichaelMure/git-bug/commands/bug/select"
"github.com/MichaelMure/git-bug/commands/completion"
"github.com/MichaelMure/git-bug/commands/execenv"
- "github.com/MichaelMure/git-bug/commands/input"
"github.com/MichaelMure/git-bug/util/text"
)
@@ -50,7 +50,7 @@ func runBugCommentNew(env *execenv.Env, opts bugCommentNewOptions, args []string
}
if opts.messageFile != "" && opts.message == "" {
- opts.message, err = input.BugCommentFileInput(opts.messageFile)
+ opts.message, err = buginput.BugCommentFileInput(opts.messageFile)
if err != nil {
return err
}
@@ -61,8 +61,8 @@ func runBugCommentNew(env *execenv.Env, opts bugCommentNewOptions, args []string
env.Err.Println("No message given. Use -m or -F option to specify a message. Aborting.")
return nil
}
- opts.message, err = input.BugCommentEditorInput(env.Backend, "")
- if err == input.ErrEmptyMessage {
+ opts.message, err = buginput.BugCommentEditorInput(env.Backend, "")
+ if err == buginput.ErrEmptyMessage {
env.Err.Println("Empty message, aborting.")
return nil
}