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_deselect.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'commands/bug/bug_deselect.go') diff --git a/commands/bug/bug_deselect.go b/commands/bug/bug_deselect.go index 7e2a86c9..090a7bf2 100644 --- a/commands/bug/bug_deselect.go +++ b/commands/bug/bug_deselect.go @@ -3,8 +3,9 @@ package bugcmd import ( "github.com/spf13/cobra" - "github.com/MichaelMure/git-bug/commands/bug/select" "github.com/MichaelMure/git-bug/commands/execenv" + _select "github.com/MichaelMure/git-bug/commands/select" + "github.com/MichaelMure/git-bug/entities/bug" ) func newBugDeselectCommand() *cobra.Command { @@ -28,7 +29,7 @@ git bug deselect } func runBugDeselect(env *execenv.Env) error { - err := _select.Clear(env.Backend) + err := _select.Clear(env.Backend, bug.Namespace) if err != nil { return err } -- cgit