summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-30 23:35:16 -0600
committerJeff Carr <[email protected]>2025-01-31 13:47:45 -0600
commitec4acd425c269c5adab54e41648f3c1304d04f63 (patch)
tree346d4c00d6eda15c86ed0f9b26a7a2aa22b24ceb /structs.go
parent0614066fdb1547310e450d0649a82ffd68c18a21 (diff)
save the path to the config dirv0.0.69
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index ac10293..a69c2c5 100644
--- a/structs.go
+++ b/structs.go
@@ -14,6 +14,7 @@ type Forge struct {
initOnce sync.Once
initErr error // init error, if any
goSrc string // the path to go/src
+ configDir string // normally ~/.config/forge
goWork bool // means the user is currently using a go.work file
Config *ForgeConfigs // config repos for readonly, private, etc
Repos *gitpb.Repos // the repo protobufs
@@ -27,6 +28,10 @@ func (f *Forge) GetGoSrc() string {
return f.goSrc
}
+func (f *Forge) GetConfigDir() string {
+ return f.configDir
+}
+
func (f *Forge) IsGoWork() bool {
return f.goWork
}