diff options
| author | Jeff Carr <[email protected]> | 2025-09-25 01:30:05 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-25 01:30:05 -0500 |
| commit | 007d320fc9d73b90d515303a8429a558deb3dec4 (patch) | |
| tree | e2f9b4015e6d6df4bf082197de47c9052ded23b2 /main.go | |
| parent | bafdfb766d0a43bbea38ee568be109d7d40d6628 (diff) | |
fix argv build
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |
