diff options
author | Steve Moyer <smoyer1@selesy.com> | 2022-05-26 13:39:13 -0400 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2022-05-26 13:39:13 -0400 |
commit | e120fdb97e3af76198eadc8a44e6feb732b4dd83 (patch) | |
tree | 428ee28c2f1e69fc79e5731e0571103f4bf73678 /commands/env.go | |
parent | e29f58bf853d0cd4825cb590ba973a9d9ab7ea36 (diff) | |
download | git-bug-e120fdb97e3af76198eadc8a44e6feb732b4dd83.tar.gz |
refactor: use namespace instead of application of applicationName
Diffstat (limited to 'commands/env.go')
-rw-r--r-- | commands/env.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/env.go b/commands/env.go index 52be4225..a6bca7e4 100644 --- a/commands/env.go +++ b/commands/env.go @@ -14,7 +14,7 @@ import ( "github.com/MichaelMure/git-bug/util/interrupt" ) -const gitBugApplicationName = "git-bug" +const gitBugNamespace = "git-bug" // Env is the environment of a command type Env struct { @@ -56,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, gitBugApplicationName, []repository.ClockLoader{bug.ClockLoader}) + env.repo, err = repository.OpenGoGitRepo(cwd, gitBugNamespace, []repository.ClockLoader{bug.ClockLoader}) if err == repository.ErrNotARepo { return fmt.Errorf("%s must be run from within a git repo", rootCommandName) } |