summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/main.go b/main.go
index 445ca89..0f53c6c 100644
--- a/main.go
+++ b/main.go
@@ -22,7 +22,7 @@ var VERSION string
var BUILDTIME string
// used for shell auto completion
-var ARGNAME string = "wit-test" // todo: get this from $0 ?
+var ARGNAME string = "wit" // todo: get this from $0 ?
var failed map[*gitpb.Repo]string
var state map[*gitpb.Repo]string
@@ -34,16 +34,21 @@ func main() {
dumpDebug()
- failed = make(map[*gitpb.Repo]string)
- state = make(map[*gitpb.Repo]string)
- debnames = make(map[*gitpb.Repo]string)
-
if argv.Upgrade != nil {
me.machine, _ = zoopb.InitMachine()
doAptUpgrade()
okExit("")
}
+ if argv.Git != nil {
+ doGit()
+ okExit("")
+ }
+
+ failed = make(map[*gitpb.Repo]string)
+ state = make(map[*gitpb.Repo]string)
+ debnames = make(map[*gitpb.Repo]string)
+
me.forge = forgepb.Init()
me.forge.Config.DumpENV()