#compdef statocles _statocles() { local -a commands commands=$(cat $HOME/www/preaction.github.io/commands) #'build:Build the site in the staging area' #'deploy:Deploy the site to production' #'apps:List the applications in the site' #) #statocles apps --complete zsh if (( CURRENT == 2 )); then _describe -t commands 'commands' commands fi return 0 } _statocles