diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 09:25:10 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 09:25:10 -0500 |
| commit | 2677e5c0cddde1f3bc0aadbc60ccf000864b66de (patch) | |
| tree | 8fb707499454e6a16e01432a405bbac8575620db /main.go | |
| parent | 8edefa6dadd1f4c3c43e145cc0431654720e2953 (diff) | |
fixes. needs a refactorv0.22.128
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -9,7 +9,6 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/prep" - "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" ) @@ -87,27 +86,22 @@ func main() { log.Warn("scan failed") } me.cBox.computeControlValues() - // verify the values for the package - - if argv.Auto { - shell.TestTerminalColor() - // basicWindow.Show() // broken gui package. convert to protobuf - if ok, err := me.cBox.buildPackage(); ok { - log.Info("build worked") - } else { - log.Warn("build failed:", err) - os.Exit(-1) - } - os.Exit(0) - } if argv.Gui != nil { // only load teh toolkit if you get this far me.myGui.Start() // loads the GUI toolkit + doGui() me.basicWindow.Show() debug() } - log.Info("go-deb: nothing to do in argv") + + log.Info("go-deb: attempting to build package") + if ok, err := buildPackage(me.cBox); ok { + log.Info("build worked") + } else { + log.Warn("build failed:", err) + os.Exit(-1) + } os.Exit(0) } |
