From 007d320fc9d73b90d515303a8429a558deb3dec4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 25 Sep 2025 01:30:05 -0500 Subject: fix argv build --- main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 5fe981c..34094ba 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "os" "strings" - "go.wit.com/dev/alexflint/arg" "go.wit.com/lib/gui/prep" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" @@ -18,19 +17,16 @@ var BUILDTIME string // used for shell auto completion var ARGNAME string = "go-mod-clean" -var pp *arg.Parser +var auto *prep.Auto // more experiments for bash handling var forge *forgepb.Forge // var check *gitpb.Repo var configSave bool func main() { + auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg // this line must be before anything else log.Info("go-mod-clean version", VERSION, "built on", BUILDTIME) - // command line parsing & handling - prep.Bash(ARGNAME, argv.DoAutoComplete) // todo: make this: prep.Bash(argv) - pp = arg.MustParse(&argv) - forge = forgepb.Init() // figure out what directory we are running in -- cgit v1.2.3