From deed575dd7f1ef60477065f6e543a57faa08aa4d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 15:04:11 -0500 Subject: working through logic to improve the code --- structs.go | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'structs.go') 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 } -- cgit v1.2.3