aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSladyn <gunnerforlife00@gmail.com>2019-03-06 17:25:32 +0530
committerSladyn <gunnerforlife00@gmail.com>2019-03-06 17:25:32 +0530
commit2f06e76f92e28ceb0ae15b5736d6774af1b1ce08 (patch)
tree58e22b723fa91b20804252350161e90e617af2b6
parentcdd8167aa0c4a8942d5d92d3d600e03d7c4a5e31 (diff)
downloadgit-bug-2f06e76f92e28ceb0ae15b5736d6774af1b1ce08.tar.gz
Added Register.Cleaner
-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 {