diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 15:04:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 15:04:11 -0500 |
| commit | deed575dd7f1ef60477065f6e543a57faa08aa4d (patch) | |
| tree | 62ce201144c3be3b214d4e45898e1c1a6a35ff8a /structs.go | |
| parent | f19039b4ae20fbf01248da9fbdf97ef93c7080d0 (diff) | |
working through logic to improve the codev0.1.2
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -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 } |
