summaryrefslogtreecommitdiffstats
path: root/pkg/env
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-05-07 15:23:08 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-05-07 16:02:04 +1000
commitcd5b041b0f8b95b473849d222b71aa2fe3b24899 (patch)
tree87b6610fa4fcbee10390966d47d1adac5e60618f /pkg/env
parentcf80978f15a60f8edd64990e24224a8f69707869 (diff)
clearer separation of concerns when bootstrapping application
Diffstat (limited to 'pkg/env')
-rw-r--r--pkg/env/env.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/env/env.go b/pkg/env/env.go
index 9c0f4816f..8d7993a9a 100644
--- a/pkg/env/env.go
+++ b/pkg/env/env.go
@@ -1,6 +1,10 @@
package env
-import "os"
+import (
+ "os"
+)
+
+// This package encapsulates accessing/mutating the ENV of the program.
func GetGitDirEnv() string {
return os.Getenv("GIT_DIR")