mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-01-27 19:44:08 +00:00
10 lines
292 B
Plaintext
10 lines
292 B
Plaintext
#compdef cabal
|
|
|
|
local -a subcmds
|
|
|
|
subcmds=(${${${${${(f)"$(cabal --help)"}[(r)Commands:*,(r)For more information*]}[2,-2]}# }%% *})
|
|
|
|
_arguments \
|
|
'1:subcmd:compadd -a subcmds' \
|
|
':other: _alternative "options:option:compadd -- $(cabal $words[2] --list-options)" "files:file:_files"'
|