diff options
| author | Michael Stapelberg <stapelberg@debian.org> | 2013-05-14 18:39:35 +0200 | 
|---|---|---|
| committer | Michael Stapelberg <michael@stapelberg.de> | 2013-05-14 18:39:35 +0200 | 
| commit | efcc50dfdc94c82ee0292bf71992ecb7c0123061 (patch) | |
| tree | 17dca99d1dc7fc4e9fe49c2cf6a99d337d4c039f /misc/zsh/go | |
| parent | 04b08da9af0c450d645ab7389d1467308cfc2db8 (diff) | |
| download | golang-efcc50dfdc94c82ee0292bf71992ecb7c0123061.tar.gz | |
Imported Upstream version 1.1upstream/1.1
Diffstat (limited to 'misc/zsh/go')
| -rw-r--r-- | misc/zsh/go | 23 | 
1 files changed, 16 insertions, 7 deletions
| diff --git a/misc/zsh/go b/misc/zsh/go index dce25547d..18bcaaff2 100644 --- a/misc/zsh/go +++ b/misc/zsh/go @@ -20,6 +20,7 @@ __go_tool_complete() {      'build[compile packages and dependencies]'      'clean[remove object files]'      'doc[run godoc on package sources]' +    'env[print Go environment information]'      'fix[run go tool fix on packages]'      'fmt[run gofmt on package sources]'      'get[download and install packages and dependencies]' @@ -40,12 +41,17 @@ __go_tool_complete() {    build_flags=(      '-a[force reinstallation of packages that are already up-to-date]'      '-n[print the commands but do not run them]' -    "-p[number of parallel builds]:number" +    '-p[number of parallel builds]:number' +    '-race[enable data race detection]'      '-x[print the commands]' -    "-work[print temporary directory name and keep it]" -    "-gcflags[flags for 5g/6g/8g]:flags" -    "-ldflags[flags for 5l/6l/8l]:flags" -    "-gccgoflags[flags for gccgo]:flags" +    '-work[print temporary directory name and keep it]' +    '-ccflags[flags for 5c/6c/8c]:flags' +    '-gcflags[flags for 5g/6g/8g]:flags' +    '-ldflags[flags for 5l/6l/8l]:flags' +    '-gccgoflags[flags for gccgo]:flags' +    '-compiler[name of compiler to use]:name' +    '-installsuffix[suffix to add to package directory]:suffix' +    '-tags[list of build tags to consider satisfied]:tags'    )    __go_list() {        local expl importpaths @@ -63,7 +69,7 @@ __go_tool_complete() {    install)        _arguments -s -w : ${build_flags[@]} \          "-v[show package names]" \ -	'*:importpaths:__go_list' +        '*:importpaths:__go_list'        ;;    get)        _arguments -s -w : \ @@ -88,7 +94,10 @@ __go_tool_complete() {          "-cpu[values of GOMAXPROCS to use]:number list" \          "-run[run tests and examples matching regexp]:regexp" \          "-bench[run benchmarks matching regexp]:regexp" \ +        "-benchmem[print memory allocation stats]" \          "-benchtime[run each benchmark until taking this long]:duration" \ +        "-blockprofile[write goroutine blocking profile to file]:file" \ +        "-blockprofilerate[set sampling rate of goroutine blocking profile]:number" \          "-timeout[kill test after that duration]:duration" \          "-cpuprofile[write CPU profile to file]:file:_files" \          "-memprofile[write heap profile to file]:file:_files" \ @@ -98,7 +107,7 @@ __go_tool_complete() {    help)        _values "${commands[@]}" \          'gopath[GOPATH environment variable]' \ -        'importpath[description of import paths]' \ +        'packages[description of package lists]' \          'remote[remote import path syntax]' \          'testflag[description of testing flags]' \          'testfunc[description of testing functions]' | 
