summary refs log tree commit diff
path: root/Completion/Debian/Command/_dupload
blob: 81ac73f6781409c7936912a663814c1b3d25c907 (plain) (blame)
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
#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"')' \
           '(--debug)-d[ftp verbosity]:debuglevel:' \
           '(-d)--debug[ftp verbosity]:debuglevel:' \
           '(--force)-f[upload ignoring logs]' \
           '(-f)--force[upload ignoring logs]' \
           '(--keep)-k[keep going, skip broken]' \
           '(-k)--keep[keep going, skip broken]' \
           '--no[dry run]' \
           '--nomail[suppress announcement]' \
           '--mailonly[dry run and real announcement]' \
           '--noarchive[add anti-archival header]' \
           '(--print)-p[print config legibly]' \
           '(-p)--print[print config legibly]' \
           '(--quiet)-q[quiet]' \
           '(-q)--quiet[quiet]' \
           '(--Version)-V[version]' \
           '(-V)--Version[version]' \
           '*:changes file:_files -g \*.changes' \