gocomplete - Attempted to add go tool pack

This commit is contained in:
Craig Hesling 2018-04-10 02:31:31 -04:00
parent 98eb9847f2
commit f6c64f0b99
1 changed files with 19 additions and 1 deletions

View File

@ -277,7 +277,25 @@ func main() {
},
Args: anyFile,
},
"pack": {},
"pack": {
/* this lacks the positional aspect of all these params */
Flags: complete.Flags{
"c": complete.PredictNothing,
"p": complete.PredictNothing,
"r": complete.PredictNothing,
"t": complete.PredictNothing,
"x": complete.PredictNothing,
"cv": complete.PredictNothing,
"pv": complete.PredictNothing,
"rv": complete.PredictNothing,
"tv": complete.PredictNothing,
"xv": complete.PredictNothing,
},
Args: complete.PredictOr(
complete.PredictFiles("*.a"),
complete.PredictFiles("*.o"),
),
},
"pprof": {
Flags: complete.Flags{
"-callgrind": complete.PredictNothing,