From e920987860dd9392fefc4b222aa4d2446b74f3d8 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 27 Dec 2022 19:40:40 +0100 Subject: commands: generic "select" code, move bug completion in bugcmd --- commands/bug/bug_label_new.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'commands/bug/bug_label_new.go') diff --git a/commands/bug/bug_label_new.go b/commands/bug/bug_label_new.go index f94d3dc8..aa4f9463 100644 --- a/commands/bug/bug_label_new.go +++ b/commands/bug/bug_label_new.go @@ -3,8 +3,6 @@ package bugcmd import ( "github.com/spf13/cobra" - "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/util/text" ) @@ -19,14 +17,14 @@ func newBugLabelNewCommand() *cobra.Command { RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error { return runBugLabelNew(env, args) }), - ValidArgsFunction: completion.BugAndLabels(env, true), + ValidArgsFunction: BugAndLabelsCompletion(env, true), } return cmd } func runBugLabelNew(env *execenv.Env, args []string) error { - b, args, err := _select.ResolveBug(env.Backend, args) + b, args, err := ResolveSelected(env.Backend, args) if err != nil { return err } -- cgit