summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-25 02:40:24 -0500
committerJeff Carr <[email protected]>2025-09-25 02:40:24 -0500
commit89c9b46f8b06c882dbc60d2cdf4c19b50397acbc (patch)
tree1a7213fff73f0d9b7fcef82bc24be7348a66b745 /main.go
parent8ab09243500576460a9e5b12cae0b997933d6577 (diff)
new argv bash completionv0.0.38v0.0.37v0.0.36v0.0.35v0.0.34
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/main.go b/main.go
index 4c507bf..80030d1 100644
--- a/main.go
+++ b/main.go
@@ -17,7 +17,6 @@ import (
"github.com/svent/go-nbreader"
"github.com/google/uuid"
- "go.wit.com/dev/alexflint/arg"
"go.wit.com/lib/gui/prep"
"go.wit.com/log"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
@@ -33,17 +32,11 @@ var resources embed.FS
func main() {
me = new(gusconf)
- prep.Bash(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(argv)
- me.myGui = prep.Gui() // prepares the GUI package for go-args
- me.pp = arg.MustParse(&argv)
+ me.myGui = prep.Gui() // prepares the GUI package for go-args
+ me.auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg
- if me.pp == nil {
- me.pp.WriteHelp(os.Stdout)
- os.Exit(0)
- }
log.Info("tmp hack", uuid.New().String())
- me = new(gusconf)
me.pollDelay = 10 * time.Second
if argv.UseME {