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_title_edit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/bug/bug_title_edit.go') diff --git a/commands/bug/bug_title_edit.go b/commands/bug/bug_title_edit.go index e71330a1..bf9f6375 100644 --- a/commands/bug/bug_title_edit.go +++ b/commands/bug/bug_title_edit.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" ) @@ -53,8 +53,8 @@ func runBugTitleEdit(env *execenv.Env, opts bugTitleEditOptions, args []string) env.Err.Println("No title given. Use -m or -F option to specify a title. Aborting.") return nil } - opts.title, err = input.BugTitleEditorInput(env.Repo, snap.Title) - if err == input.ErrEmptyTitle { + opts.title, err = buginput.BugTitleEditorInput(env.Repo, snap.Title) + if err == buginput.ErrEmptyTitle { env.Out.Println("Empty title, aborting.") return nil } -- cgit