mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Update completions for go
The tool subcommand had a "-f" flag to disallow file completions which is wrong: most of the tools there require a file/directory argument. Since we're here, also limit "go tool compile" to only match Go source files.
This commit is contained in:
parent
857a89e4bd
commit
3b7d759d11
1 changed files with 2 additions and 1 deletions
|
@ -89,8 +89,9 @@ __fish_complete_go_files test
|
||||||
|
|
||||||
# tool
|
# tool
|
||||||
complete -c go -n '__fish_use_subcommand' -a tool -d 'run specified go tool'
|
complete -c go -n '__fish_use_subcommand' -a tool -d 'run specified go tool'
|
||||||
complete -c go -f -n '__fish_seen_subcommand_from tool' -a '5a 5c 5g 5l 6a 6c 6g 6l addr2line api cgo cov dist fix nm objdump pack pprof prof vet yacc' -d "target tool"
|
complete -c go -n '__fish_seen_subcommand_from tool' -a 'addr2line api asm cgo compile dist fix link nm objdump pack pprof prof vet yacc' -d "target tool"
|
||||||
complete -c go -n '__fish_seen_subcommand_from tool' -s n -d "print the command that would be executed but not execute it"
|
complete -c go -n '__fish_seen_subcommand_from tool' -s n -d "print the command that would be executed but not execute it"
|
||||||
|
__fish_complete_go_files compile
|
||||||
|
|
||||||
# version
|
# version
|
||||||
complete -c go -f -n '__fish_use_subcommand' -a version -d 'print Go version'
|
complete -c go -f -n '__fish_use_subcommand' -a version -d 'print Go version'
|
||||||
|
|
Loading…
Reference in a new issue