summaryrefslogtreecommitdiff
path: root/argv.custom.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 10:29:48 -0500
committerJeff Carr <[email protected]>2025-10-26 10:29:48 -0500
commita0932e4887683e445f5c0d1cd90bf711ab4b1bf2 (patch)
tree3d3bfff4ae19967c0fa71b0061504235017ecac0 /argv.custom.go
parenta9eef24fd4378f0f94897b0d3fd2eb8092f50c8b (diff)
argv: sometimes things work better than beforeHEADv0.22.135v0.22.134masterdevel
Diffstat (limited to 'argv.custom.go')
-rw-r--r--argv.custom.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/argv.custom.go b/argv.custom.go
deleted file mode 100644
index 7a1a9d3..0000000
--- a/argv.custom.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package main
-
-import (
- "os"
-
- "go.wit.com/lib/protobuf/argvpb"
-)
-
-// are sent via -ldflags at buildtime
-var VERSION string
-var BUILDTIME string
-
-// used for shell auto completion
-var APPNAME string = "gowebd"
-
-// sends the strings to bash or zsh that will be your options
-func (a args) SendCompletionStrings(pb *argvpb.Argv) {
- if pb.GetCmd() == "" {
- base := []string{"test", "--version", "--force"}
- pb.SendStrings(base)
- } else {
- pb.SubCommand(pb.Goargs...)
- }
- os.Exit(0)
-}