summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 05:11:23 -0500
committerJeff Carr <[email protected]>2025-09-09 05:11:23 -0500
commitc3f5588365c1c68a1d87e5a6415eac18876dfce9 (patch)
treea6aa7316206e9b62052f39dad33e9d4fd6b54e90 /main.go
parentd5069b63f882d12a3179332f1281bcd1ede44462 (diff)
new GUI codebasev0.0.15
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 3 insertions, 13 deletions
diff --git a/main.go b/main.go
index 1dca01f..8557d36 100644
--- a/main.go
+++ b/main.go
@@ -7,11 +7,9 @@ package main
import (
"fmt"
- "os"
"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"
)
@@ -29,18 +27,10 @@ var configFile string = "/home/jcarr/.config/startxplacement.out"
func main() {
me = new(mainType)
- 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)
- if argv.Bash {
- fhelp.DoBash(ARGNAME)
- os.Exit(0)
- }
- if len(argv.BashAuto) != 0 {
- argv.doBashAuto()
- os.Exit(0)
- }
-
if argv.DumpX != nil {
doDumpX()
}