summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-25 01:41:05 -0500
committerJeff Carr <[email protected]>2025-09-25 01:41:05 -0500
commitbb99305225210181525b1482888a7bfddd9ff68e (patch)
treeb0a9002926514e4a519463bc0b2b4bcea27d48f5 /main.go
parent10ccaf765b25e3712b2bde2737ae443ae68284af (diff)
new autocomplete methodv0.0.84v0.0.83v0.0.82v0.0.81
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.go b/main.go
index a8a612d..be28e36 100644
--- a/main.go
+++ b/main.go
@@ -7,7 +7,6 @@ import (
"os"
"time"
- "go.wit.com/dev/alexflint/arg"
"go.wit.com/lib/gui/prep"
"go.wit.com/lib/protobuf/httppb"
"go.wit.com/lib/protobuf/zoopb"
@@ -21,9 +20,8 @@ var ARGNAME string = "zookeeper"
func main() {
me = new(mainType)
- 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 argv.Daemon {
// turn off timestamps for STDOUT (systemd adds them)