zsh-workers
 help / color / mirror / code / Atom feed
b8e1c25557a223bc7c043f7b22fcfa1eec26b6f9 blob 1053 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
#compdef portsnap

local curcontext="$curcontext" state line flags
typeset -A opt_args

flags=(
  '(cron)fetch[fetch a compressed snapshot or update existing one]'
  '(fetch)cron[sleep rand(3600) seconds, and then fetch updates]'
  '(update)extract[extract snapshot, replacing existing files and dirs]'
  '(extract)update[update ports tree to match current snapshot]'
)

_arguments -C -s \
    '-d[store working files in workdir]:workdir:_files -/' \
    '-f[read configuration options from conffile]:conf file:_files' \
    '-I[update INDEX only. (update command only)]' \
    '-k[trust an RSA key with SHA256 hash of KEY]:RSA key:_files' \
    '-l[merge the specified local describes file into the INDEX]:file:_files' \
    '-p[location of uncompressed ports tree]:uncompressed ports tree:_files -/' \
    '-s[server from which to fetch updates]:server:_hosts' \
    '*:principal:->principal' && ret=0

if [[ $state == principal ]]; then
  _alternative \
    ':file flag:_values -S " " -w "commands" $flags[@]' \
    '*:path:_files -/'
fi

return ret
debug log:

solving b8e1c2555 ...
found b8e1c2555 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).