aboutsummaryrefslogtreecommitdiffstats
path: root/commands/env.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-05-25 07:55:28 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-05-25 07:55:28 -0400
commitb42fae382af0a43b0d51fb312abd4ff55df43877 (patch)
treec1f46b2fadd29d9a2890ecc1b9991e367aac86f2 /commands/env.go
parent650c11dcb68bfe00e2d399c5e1d337cae9c1bfeb (diff)
downloadgit-bug-b42fae382af0a43b0d51fb312abd4ff55df43877.tar.gz
feat: make local storage configurable
Diffstat (limited to 'commands/env.go')
-rw-r--r--commands/env.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/env.go b/commands/env.go
index ac7b789a..52be4225 100644
--- a/commands/env.go
+++ b/commands/env.go
@@ -14,6 +14,8 @@ import (
"github.com/MichaelMure/git-bug/util/interrupt"
)
+const gitBugApplicationName = "git-bug"
+
// Env is the environment of a command
type Env struct {
repo repository.ClockedRepo
@@ -54,7 +56,7 @@ func loadRepo(env *Env) func(*cobra.Command, []string) error {
return fmt.Errorf("unable to get the current working directory: %q", err)
}
- env.repo, err = repository.OpenGoGitRepo(cwd, []repository.ClockLoader{bug.ClockLoader})
+ env.repo, err = repository.OpenGoGitRepo(cwd, gitBugApplicationName, []repository.ClockLoader{bug.ClockLoader})
if err == repository.ErrNotARepo {
return fmt.Errorf("%s must be run from within a git repo", rootCommandName)
}