blob: ed6b731a7952d5cfe60b16d784b585eb78e73a47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | 
package main
import (
	"os"
	"go.wit.com/lib/protobuf/argvpb"
)
// are sent via -ldflags at buildtime
var VERSION string
var BUILDTIME string
var APPNAME string = "forged"
// sends the strings to bash or zsh that will be your options
func (a args) SendCompletionStrings(pb *argvpb.Argv) {
	if pb.GetCmd() == "" {
		base := []string{"--bash", "repos", "gui", "patches", "--daemon", "missing"}
		pb.SendStrings(base)
	} else {
		pb.SubCommand(pb.Goargs...)
	}
	os.Exit(0)
}
  |