3 local curcontext="$curcontext" state line cmds ret=1
6 '(- 1 *)'{-v,--version}'[display version information]' \
7 '(-h|--help)'{-h,--help}'[show help information]' \
14 "version:Prints Gas's version"
16 "ssh:Creates a new ssh key for an existing gas author"
17 "show:Shows your current user"
18 "list:Lists your authors"
19 "import:Imports current user to gasconfig"
20 "help:Describe available tasks or one specific task"
21 "delete:Deletes author"
22 "add:Adds author to gasconfig"
24 _describe -t commands 'gas command' cmds && ret=0
30 if [[ $VERSION == <1->.*.* ]] || [[ $VERSION == 0.<2->.* ]] || [[ $VERSION == 0.1.<6-> ]] then
31 _values -S , 'authors' $(cat ~/.gas/gas.authors | sed -n -e 's/^.*\[\(.*\)\]/\1/p') && ret=0
33 _values -S , 'authors' $(cat ~/.gas | sed -n -e 's/^\[\(.*\)\]/\1/p') && ret=0