diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 01:05:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 01:05:11 -0500 |
| commit | 4acdb3bce3d7afb5f9218ac958b235358493563c (patch) | |
| tree | 7b7c16bdf5efac5413f0003356208864e348d43e /main.go | |
| parent | 01fa86c6f69dc7f34b92f98c0d45ff93c324da9f (diff) | |
more autocomplete work
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 33 |
1 files changed, 7 insertions, 26 deletions
@@ -10,10 +10,6 @@ import ( "path/filepath" "unicode" - "go.wit.com/lib/gui/prep" - "go.wit.com/lib/protobuf/forgepb" - "go.wit.com/lib/protobuf/gitpb" - "go.wit.com/lib/protobuf/zoopb" "go.wit.com/log" ) @@ -24,35 +20,25 @@ var BUILDTIME string // used for shell auto completion var ARGNAME string = "wit" // todo: get this from $0 ? -var failed map[*gitpb.Repo]string -var state map[*gitpb.Repo]string -var debnames map[*gitpb.Repo]string - func main() { - me = new(autoType) - me.auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg - - dumpDebug() + me = new(mainType) + me.once.Do(initMain) if argv.Upgrade != nil { doUpgrade() okExit("") } + if argv.Debian != nil { + doDebian() + 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() - - me.machine, _ = zoopb.InitMachine() - if argv.Clone != nil { if argv.RepoMap != "" { repomap(argv.RepoMap) @@ -107,11 +93,6 @@ func main() { doListRepos() - if argv.DebBuild != nil { - buildDeb() - okExit("") - } - if argv.MakeInstall != nil { if err := doInstall(); err != nil { log.Info("doInstall() failed", err) |
