Merge pull request #63 from linux4life798/optionsadd
gocomplete - adding go tool link and pack
This commit is contained in:
commit
e037c22b2f
|
@ -262,7 +262,57 @@ func main() {
|
|||
},
|
||||
Args: anyGo,
|
||||
},
|
||||
"link": {},
|
||||
"link": {
|
||||
Flags: complete.Flags{
|
||||
"-B": complete.PredictAnything, // note
|
||||
"-D": complete.PredictAnything, // address (default -1)
|
||||
"-E": complete.PredictAnything, // entry symbol name
|
||||
"-H": complete.PredictAnything, // header type
|
||||
"-I": complete.PredictAnything, // linker binary
|
||||
"-L": complete.PredictDirs("*"), // directory
|
||||
"-R": complete.PredictAnything, // quantum (default -1)
|
||||
"-T": complete.PredictAnything, // address (default -1)
|
||||
"-V": complete.PredictNothing,
|
||||
"-X": complete.PredictAnything,
|
||||
"-a": complete.PredictAnything,
|
||||
"-buildid": complete.PredictAnything, // build id
|
||||
"-buildmode": complete.PredictAnything,
|
||||
"-c": complete.PredictNothing,
|
||||
"-cpuprofile": anyFile,
|
||||
"-d": complete.PredictNothing,
|
||||
"-debugtramp": complete.PredictAnything, // int
|
||||
"-dumpdep": complete.PredictNothing,
|
||||
"-extar": complete.PredictAnything,
|
||||
"-extld": complete.PredictAnything,
|
||||
"-extldflags": complete.PredictAnything, // flags
|
||||
"-f": complete.PredictNothing,
|
||||
"-g": complete.PredictNothing,
|
||||
"-importcfg": anyFile,
|
||||
"-installsuffix": complete.PredictAnything, // dir suffix
|
||||
"-k": complete.PredictAnything, // symbol
|
||||
"-libgcc": complete.PredictAnything, // maybe "none"
|
||||
"-linkmode": complete.PredictAnything, // mode
|
||||
"-linkshared": complete.PredictNothing,
|
||||
"-memprofile": anyFile,
|
||||
"-memprofilerate": complete.PredictAnything, // rate
|
||||
"-msan": complete.PredictNothing,
|
||||
"-n": complete.PredictNothing,
|
||||
"-o": complete.PredictAnything,
|
||||
"-pluginpath": complete.PredictAnything,
|
||||
"-r": complete.PredictAnything, // "dir1:dir2:..."
|
||||
"-race": complete.PredictNothing,
|
||||
"-s": complete.PredictNothing,
|
||||
"-tmpdir": complete.PredictDirs("*"),
|
||||
"-u": complete.PredictNothing,
|
||||
"-v": complete.PredictNothing,
|
||||
"-w": complete.PredictNothing,
|
||||
// "-h": complete.PredictAnything, // halt on error
|
||||
},
|
||||
Args: complete.PredictOr(
|
||||
complete.PredictFiles("*.a"),
|
||||
complete.PredictFiles("*.o"),
|
||||
),
|
||||
},
|
||||
"nm": {
|
||||
Flags: complete.Flags{
|
||||
"-n": complete.PredictNothing,
|
||||
|
@ -279,7 +329,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,
|
||||
|
|
Loading…
Reference in New Issue