mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-30 00:34:50 +00:00
Merge pull request #479 from zsh-users/go-subdir-comp
Fix path completion for completing go files in subdirectories
This commit is contained in:
@@ -177,7 +177,7 @@ _go() {
|
|||||||
_arguments \
|
_arguments \
|
||||||
${build_flags[@]} \
|
${build_flags[@]} \
|
||||||
'-exec[invoke the binary using xprog]:xporg' \
|
'-exec[invoke the binary using xprog]:xporg' \
|
||||||
'*:file:_path_files -g "*.go"'
|
'*:file:_files -g "*.go(-.)"'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
test)
|
test)
|
||||||
@@ -330,7 +330,7 @@ _go() {
|
|||||||
'-wb[enable write barrier (default 1)]' \
|
'-wb[enable write barrier (default 1)]' \
|
||||||
'-x[debug lexer]' \
|
'-x[debug lexer]' \
|
||||||
'-y[debug declarations in canned imports (with -d)]' \
|
'-y[debug declarations in canned imports (with -d)]' \
|
||||||
'*:file:_path_files -g "*.go"'
|
'*:file:_files -g "*.go(-.)"'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
cover)
|
cover)
|
||||||
@@ -345,7 +345,7 @@ _go() {
|
|||||||
_arguments \
|
_arguments \
|
||||||
'-o[file for output]:file' \
|
'-o[file for output]:file' \
|
||||||
'-var=[name of coverage variable to generate]:var' \
|
'-var=[name of coverage variable to generate]:var' \
|
||||||
'*:file:_path_files -g "*.go"'
|
'*:file:_files -g "*.go(-.)"'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
doc)
|
doc)
|
||||||
|
|||||||
Reference in New Issue
Block a user