From 17d8a371af62f2abfd8ce612e79aa34e16ecaec2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 2 Oct 2025 20:13:57 -0500 Subject: rename 'wit' --- main.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'main.go') 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() -- cgit v1.2.3