aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bug/bug_status_open.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-12-27 19:48:19 +0100
committerGitHub <noreply@github.com>2022-12-27 19:48:19 +0100
commitd11ea5c2adec0fd92be30d3e3bdd1b5679d4118c (patch)
treebd77aa36941db325dcefd6440e4fe913e88708fa /commands/bug/bug_status_open.go
parentb11f60f5c02bd1c86cf14e58e90de4fe5e454e7c (diff)
parente920987860dd9392fefc4b222aa4d2446b74f3d8 (diff)
downloadgit-bug-d11ea5c2adec0fd92be30d3e3bdd1b5679d4118c.tar.gz
Merge pull request #962 from MichaelMure/select-completion
commands: generic "select" code, move bug completion in bugcmd
Diffstat (limited to 'commands/bug/bug_status_open.go')
-rw-r--r--commands/bug/bug_status_open.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/bug/bug_status_open.go b/commands/bug/bug_status_open.go
index e686add1..74177974 100644
--- a/commands/bug/bug_status_open.go
+++ b/commands/bug/bug_status_open.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"
)
@@ -18,14 +16,14 @@ func newBugStatusOpenCommand() *cobra.Command {
RunE: execenv.CloseBackend(env, func(cmd *cobra.Command, args []string) error {
return runBugStatusOpen(env, args)
}),
- ValidArgsFunction: completion.Bug(env),
+ ValidArgsFunction: BugCompletion(env),
}
return cmd
}
func runBugStatusOpen(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
}