summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-25 01:53:09 -0500
committerJeff Carr <[email protected]>2025-09-25 01:53:09 -0500
commitf556147358998c4eb11eab8045db96448112a017 (patch)
tree07d93aa78154a8d1f3626e4e49c47dca8e5c8b60 /main.go
parentdbcd3b5686cf5d894e40b53f33cf588f4682b3f0 (diff)
new argv bash autocompletev0.2.80v0.2.79v0.2.78v0.2.77
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 2f043be..19e27b8 100644
--- a/main.go
+++ b/main.go
@@ -9,7 +9,6 @@ import (
"path/filepath"
"github.com/google/uuid"
- "go.wit.com/dev/alexflint/arg"
"go.wit.com/lib/gui/prep"
"go.wit.com/lib/protobuf/virtpb"
"go.wit.com/log"
@@ -26,14 +25,8 @@ var resources embed.FS
func main() {
me = new(virtigoT)
- 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)
-
- if me.pp == nil {
- me.pp.WriteHelp(os.Stdout)
- os.Exit(0)
- }
+ 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 os.Getenv("VIRTIGO_HOME") == "" {
homeDir, _ := os.UserHomeDir()