aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bug/bug_title_edit.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-27 17:23:56 +0100
committerMichael Muré <batolettre@gmail.com>2022-12-27 17:23:56 +0100
commitd5b07f48376cef9f62e12e3b56bcdd7483ef588f (patch)
tree2eaf6c403e0f6e8bf1fd1327afd275a226d93f1f /commands/bug/bug_title_edit.go
parent4c7043e8ed994d7863cfd706f6cfd2e1f91850df (diff)
downloadgit-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.go6
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
}