diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 05:07:45 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 05:07:45 -0500 |
| commit | 72a360cb950c48f1556ce48b5fad16b17ca7fcc4 (patch) | |
| tree | bd2f66aaac812860d21ac526a85e7c6c96b6353a /main.go | |
| parent | cd4e1f9867776f245d8fb0938ec4999cd8e28d41 (diff) | |
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 28 |
1 files changed, 7 insertions, 21 deletions
@@ -13,8 +13,7 @@ import ( "unicode" "go.wit.com/dev/alexflint/arg" - "go.wit.com/gui" - "go.wit.com/lib/fhelp" + "go.wit.com/lib/gui/prep" "go.wit.com/log" ) @@ -30,26 +29,10 @@ var resources embed.FS func main() { me = new(autoType) - gui.InitArg() + prep.Bash(ARGNAME, argv.DoAutoComplete) // todo: this line should be: prep.Bash(argv) + me.myGui = prep.Gui() // prepares the GUI package for go-args me.pp = arg.MustParse(&argv) - // check if the binary is being called to test - // if the plugin can actually loaded. This is a hack - // around needing a Test() plugin load function in GO - if gui.IsGoPluginTestHack() { - gui.CheckPlugin() - os.Exit(0) - } - - if argv.Bash { - fhelp.DoBash(ARGNAME) - os.Exit(0) - } - if len(argv.BashAuto) != 0 { - argv.doBashAuto() - os.Exit(0) - } - me.pb = NewBlocks() /* @@ -60,7 +43,10 @@ func main() { */ go listenForBlockEvents() - doGui() + + me.myGui.Start() // loads the GUI toolkit + doGui() // start making our forge GUI + debug() // sits here forever okExit("everything compiled") } |
