diff options
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 } |
