From 1fc75cd8934b220db3814710c0a79d549fcf827f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 24 Oct 2025 11:44:53 -0500 Subject: new argv.proto --- main.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 8011e1e..3ae3c06 100644 --- a/main.go +++ b/main.go @@ -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) -- cgit v1.2.3