summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-19 05:29:27 -0500
committerJeff Carr <[email protected]>2025-10-19 05:29:27 -0500
commit6ca452fb52c847c92704b9cd6ad13c91234eadbf (patch)
tree17644390434dd4ec1fe0d9b073b671669bb0f623 /main.go
parent4802283a2819d977f2f1d2e052ce30dbc00b3489 (diff)
new argvv0.0.20
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 894ca63..96f8904 100644
--- a/main.go
+++ b/main.go
@@ -4,14 +4,14 @@ import (
"os"
git "go.wit.com/lib/libgit2"
+ "go.wit.com/lib/protobuf/argvpb"
"go.wit.com/log"
)
-// are sent via -ldflags at buildtime
-var VERSION string
-var BUILDTIME string
-
func main() {
+ me = new(autoType)
+ me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args
+
var repo *git.Repository
if argv.Refs {
repo, _ = showRefs()