mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
Added Register.Cleaner
This commit is contained in:
parent
cdd8167aa0
commit
2f06e76f92
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user