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) }