diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 11:44:53 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 11:44:53 -0500 |
| commit | 1fc75cd8934b220db3814710c0a79d549fcf827f (patch) | |
| tree | 5b2e34783896532aaa3e84d09d0427fd0077efde /main.go | |
| parent | 58519f14654cb2dd5d1b938bae5dbdaba5c04a1a (diff) | |
new argv.protov0.25.99
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -60,7 +60,7 @@ func main() { // put things to do every time forge runs here doCoreChecks() - if me.argv.Cmd == "" { + if me.argv.GetCmd() == "" { // no command line arguments were given // do the default behavior and exit s, err := doDefaultBehavior() @@ -70,10 +70,15 @@ func main() { me.argv.GoodExit(s) } - log.Info("Starting forge with subcommand:", me.argv.Cmd) - + log.Info("Starting forge with subcommand:", me.argv.GetCmd()) s, err = doSubcommand() + // if the gui starts, it doesn't yet go to the end normally + if argv.Gui != nil { + me.myGui.Start() // loads the GUI toolkit + doGui() // start making our forge GUI + debug() // sits here forever + } // safe exits back to your shell (with timing and toolkit close) if err != nil { me.argv.BadExit(s, err) |
