diff options
Diffstat (limited to 'argv.custom.go')
| -rw-r--r-- | argv.custom.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/argv.custom.go b/argv.custom.go deleted file mode 100644 index 00f8d7b..0000000 --- a/argv.custom.go +++ /dev/null @@ -1,34 +0,0 @@ -package main - -import ( - "os" - - "go.wit.com/lib/protobuf/argvpb" -) - -// this is where to customize argv for your application - -var APPNAME string = "basicwindow" - -// sent via -ldflags -var VERSION string -var BUILDTIME string - -func (a args) Description() string { - return ` -This basicwindow example demonstrates multiple windows -` -} - -// sends the strings to bash or zsh that will be your options -func (a args) SendCompletionStrings(pb *argvpb.Argv) { - if pb.GetCmd() == "" { - // these are base autocomplete strings - matches := []string{"--bash", "--version", "demo", "gui"} - pb.SendStrings(matches) - } else { - // autogenerate the strings for the subcommand using github.com/alexflint/go-arg - pb.GenerateSubCommandStrings(pb.Goargs...) - } - os.Exit(0) -} |
