diff options
| author | Jeff Carr <[email protected]> | 2025-10-18 03:21:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-18 03:21:39 -0500 |
| commit | d68c81c1add8b09aed8b8a19c6b61610a9ff8605 (patch) | |
| tree | 8e16849a0e3d57663e930201158d2181fafced8b /main.go | |
| parent | 4fee86a80f84dd7c591935c7c5d7013adbab0b67 (diff) | |
switching to the new 'argv'
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 19 |
1 files changed, 2 insertions, 17 deletions
@@ -1,18 +1,12 @@ package main import ( - "os" - - "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" "go.wit.com/lib/gadgets" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" "go.wit.com/log" ) -// sent via -ldflags -var VERSION string - // this is the primary window. If you close it, the program will exit var mainWindow *gui.Node @@ -27,16 +21,7 @@ var colors *gui.Node func main() { me := new(mainType) - me.myGui = prep.Gui() // prepares the GUI package for go-args - me.pp = arg.MustParse(&argv) - - // for very new users or users unfamilar with the command line, this may help them - if argv.Demo == "version" || argv.Demo == "help" || argv.Demo == "?" { - me.pp.WriteHelp(os.Stdout) - os.Exit(0) - } - - me.myGui.Start() // loads the GUI toolkit (GO Plugins) + me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args helloworld() basicWindow = makebasicWindow() |
