summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 02:47:40 -0500
committerJeff Carr <[email protected]>2025-10-03 02:47:40 -0500
commitbdb6a5570525ae59f21a277f50e5a2dcd86e9dd0 (patch)
tree2bd12a44fef47b712ce6be9ba529dea612b0905f /structs.go
parentd0a5983ade20fed877c2803b73528c28dac77fa6 (diff)
moving stuff here from what was bash before
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index c11fb22..311cba3 100644
--- a/structs.go
+++ b/structs.go
@@ -4,6 +4,7 @@
package main
import (
+ "os"
"sync"
"go.wit.com/lib/gui/prep"
@@ -20,6 +21,7 @@ type mainType struct {
auto *prep.Auto // more experiments for bash handling
forge *forgepb.Forge // your customized repo preferences and settings
machine *zoopb.Machine // your customized repo preferences and settings
+ homedir string // where the user homedir is
}
// move these to mainType
@@ -49,5 +51,6 @@ func initMain() {
state = make(map[*gitpb.Repo]string)
debnames = make(map[*gitpb.Repo]string)
+ me.homedir, _ = os.UserHomeDir()
dumpDebug()
}