diff options
author | Michael Muré <batolettre@gmail.com> | 2022-12-27 17:23:56 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2022-12-27 17:23:56 +0100 |
commit | d5b07f48376cef9f62e12e3b56bcdd7483ef588f (patch) | |
tree | 2eaf6c403e0f6e8bf1fd1327afd275a226d93f1f /commands/bug/bug_title_edit.go | |
parent | 4c7043e8ed994d7863cfd706f6cfd2e1f91850df (diff) | |
download | git-bug-d5b07f48376cef9f62e12e3b56bcdd7483ef588f.tar.gz |
commands: move bug specific input code into commands/bug/input
Diffstat (limited to 'commands/bug/bug_title_edit.go')
-rw-r--r-- | commands/bug/bug_title_edit.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |