aboutsummaryrefslogtreecommitdiffstats
path: root/commands/ls-id.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/ls-id.go')
-rw-r--r--commands/ls-id.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/ls-id.go b/commands/ls-id.go
index 3b0e476e..8dc94ec7 100644
--- a/commands/ls-id.go
+++ b/commands/ls-id.go
@@ -5,6 +5,7 @@ import (
"strings"
"github.com/MichaelMure/git-bug/cache"
+ "github.com/MichaelMure/git-bug/util/interrupt"
"github.com/spf13/cobra"
)
@@ -15,6 +16,7 @@ func runLsID(cmd *cobra.Command, args []string) error {
return err
}
defer backend.Close()
+ interrupt.RegisterCleaner(backend.Close)
var prefix = ""
if len(args) != 0 {