summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
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
}