Dash:
[t2.git] / package / archiver / mine / mine.zsh
blob2402657b48ee481e2cb874a2463d7bef79d7570a
1 #compdef mine
3 _arguments -s \
4 '(-i)'-i'[install package]:package:->packages' \
5 '(-r)'-r'[remove package]:package:->packages' \
6 '(-q)'-q'[show package version]:package:->packages' \
7 '(-p)'-p'[display package description]:package:->packages' \
8 '(-l)'-l'[display all files owned by a package]:package:->packages' \
9 '(-d)'-d'[show package dependecies]:package:->packages' \
10 '(-m)'-m'[view checksums for each files owned by a package]:package:->packages' \
11 '(-v)'-v'[verbose: output information while processing packages]' \
12 '(-t)'-t'[run in test mode aka dry-run]' \
13 '(-f)'-f'[force (skip checksum tests)]' \
14 '(-s)'-s'[also remove sub-packages]' \
15 '(-x)'-x'[skip files based on PATTERN]' \
16 '(-R)'-R'[specify root directory]:root:_files' \
17 '(-T)'-T'[create .tar.bz2 package files from installed packages]'
19 case ${state} in
20 packages)
21 _values 'package list' /var/adm/packages/*(.:t)
23 esac