about summary refs log tree commit diff
path: root/Completion/Unix/Command/_tla
blob: 22ce67133952c24266986ae2935fa2d94d707bc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
#compdef tla

subcmds=(${${${(M)${(f)"$(_call_program tla tla help)"}:#[ 	]* : *}% : *}##[ 	]##} )

if (( CURRENT == 2 )); then
     _describe -t commands 'tla command' compadd - "$subcmds[@]"
else
     _files
fi