summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-02 20:13:57 -0500
committerJeff Carr <[email protected]>2025-10-02 20:13:57 -0500
commit17d8a371af62f2abfd8ce612e79aa34e16ecaec2 (patch)
tree1a09997afeba3eaa2878dbd7b830e53d95049a19 /main.go
parent8bfcfbe3e400131f158360772dc1e4521a292341 (diff)
rename 'wit'
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()