From 0bddfe1d9d737dfbd5c818ac32d79f578129d5d8 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Tue, 17 Jan 2023 20:18:56 -0500 Subject: fix(commands): create env.Env once for all Cobra commands Resolves #996 --- commands/wipe.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'commands/wipe.go') diff --git a/commands/wipe.go b/commands/wipe.go index 0ec53f49..ce9da032 100644 --- a/commands/wipe.go +++ b/commands/wipe.go @@ -6,9 +6,7 @@ import ( "github.com/MichaelMure/git-bug/commands/execenv" ) -func newWipeCommand() *cobra.Command { - env := execenv.NewEnv() - +func newWipeCommand(env *execenv.Env) *cobra.Command { cmd := &cobra.Command{ Use: "wipe", Short: "Wipe git-bug from the git repository", -- cgit