From 2f06e76f92e28ceb0ae15b5736d6774af1b1ce08 Mon Sep 17 00:00:00 2001 From: Sladyn Date: Wed, 6 Mar 2019 17:25:32 +0530 Subject: [PATCH] Added Register.Cleaner --- commands/ls-id.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/ls-id.go b/commands/ls-id.go index 3b0e476ee934e1600fa6c7e4c88c8e5754f4ad5b..8dc94ec7064e14ad352e548105a1f451947a71ad 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 {