summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-24 11:44:53 -0500
committerJeff Carr <[email protected]>2025-10-24 11:44:53 -0500
commit1fc75cd8934b220db3814710c0a79d549fcf827f (patch)
tree5b2e34783896532aaa3e84d09d0427fd0077efde /main.go
parent58519f14654cb2dd5d1b938bae5dbdaba5c04a1a (diff)
new argv.protov0.25.99
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 8 insertions, 3 deletions
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)