File: _dupload

package info (click to toggle)
zsh-beta 4.3.0-dev-1%2B20050424-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,240 kB
  • ctags: 6,564
  • sloc: ansic: 79,241; sh: 4,874; perl: 748; makefile: 676; awk: 341; sed: 16
file content (21 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#compdef dupload

if (( ! $+_dupload_sites )); then
  _dupload_sites=(
    $(grep -hs "^\$cfg" /etc/dupload.conf ~/.dupload.conf | sed 's/^\$cfg{\([^}]*\)}.*$/\1/')
  )
fi

_arguments \
  '--to:nickname[nickname of target site]:('"$_dupload_sites"')' \
  '(-d --debug)'{-d,--debug}'[ftp verbosity]:debuglevel:' \
  '(-f --force)'{-f,--force}'[upload ignoring logs]' \
  '(-k --keep)'{-k,--keep}'[keep going, skip broken]' \
  '--no[dry run]' \
  '--nomail[suppress announcement]' \
  '--mailonly[dry run and real announcement]' \
  '--noarchive[add anti-archival header]' \
  '(-p --print)'{-p,--print}'[print config legibly]' \
  '(-q --quiet)'{-q,--quiet}'[quiet]' \
  '(-V --Version)'{-V,--Version}'[display version information]' \
  '*:changes file:_files -g "*.changes(-.)"'