summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 15:04:11 -0500
committerJeff Carr <[email protected]>2025-10-03 15:04:11 -0500
commitdeed575dd7f1ef60477065f6e543a57faa08aa4d (patch)
tree62ce201144c3be3b214d4e45898e1c1a6a35ff8a /structs.go
parentf19039b4ae20fbf01248da9fbdf97ef93c7080d0 (diff)
working through logic to improve the codev0.1.2
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go18
1 files changed, 3 insertions, 15 deletions
diff --git a/structs.go b/structs.go
index 50c1c9b..d728fd8 100644
--- a/structs.go
+++ b/structs.go
@@ -9,7 +9,6 @@ import (
"go.wit.com/lib/gui/prep"
"go.wit.com/lib/protobuf/forgepb"
- "go.wit.com/lib/protobuf/gitpb"
"go.wit.com/lib/protobuf/zoopb"
)
@@ -24,12 +23,6 @@ type mainType struct {
homedir string // where the user homedir is
}
-// move these to mainType
-var failed map[*gitpb.Repo]string
-
-// var state map[*gitpb.Repo]string
-// var debnames map[*gitpb.Repo]string
-
func initForge() {
if me.forge == nil {
me.forge = forgepb.Init()
@@ -46,12 +39,7 @@ func initMachine() {
func initMain() {
// autocomplete must be processed before there is anything sent to STDOUT or STDERR
- me.auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg
-
- failed = make(map[*gitpb.Repo]string)
- // state = make(map[*gitpb.Repo]string)
- // debnames = make(map[*gitpb.Repo]string)
-
- me.homedir, _ = os.UserHomeDir()
- dumpDebug()
+ me.auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg
+ me.homedir, _ = os.UserHomeDir() // store shortcut here todo: add better logic
+ dumpDebug() // tinkering
}