From d5b07f48376cef9f62e12e3b56bcdd7483ef588f Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 27 Dec 2022 17:23:56 +0100 Subject: commands: move bug specific input code into commands/bug/input --- commands/bug/bug_comment_edit.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/bug/bug_comment_edit.go') diff --git a/commands/bug/bug_comment_edit.go b/commands/bug/bug_comment_edit.go index 2a0289f5..ded3d82a 100644 --- a/commands/bug/bug_comment_edit.go +++ b/commands/bug/bug_comment_edit.go @@ -3,8 +3,8 @@ package bugcmd import ( "github.com/spf13/cobra" + buginput "github.com/MichaelMure/git-bug/commands/bug/input" "github.com/MichaelMure/git-bug/commands/execenv" - "github.com/MichaelMure/git-bug/commands/input" ) type bugCommentEditOptions struct { @@ -47,7 +47,7 @@ func runBugCommentEdit(env *execenv.Env, opts bugCommentEditOptions, args []stri } if opts.messageFile != "" && opts.message == "" { - opts.message, err = input.BugCommentFileInput(opts.messageFile) + opts.message, err = buginput.BugCommentFileInput(opts.messageFile) if err != nil { return err } @@ -58,8 +58,8 @@ func runBugCommentEdit(env *execenv.Env, opts bugCommentEditOptions, args []stri 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 } -- cgit