summary refs log tree commit diff
path: root/Completion/Unix/Command/_pkgadd
blob: 042cc79a1c23737a9f82c0003f2ca74b0c10f783 (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
27
28
29
30
31
32
#compdef pkgadd

_pkgadd_pass() {
	_values -S : 'password descriptor' \
	'(file env console)pass[Literal password]:password:' \
	'(pass file console)env[Environment variable]:environment:_parameters -g "*export*"' \
	'(pass env console)file[File]:file:_files' \
	'(pass env file)console[From /dev/tty]'
}

_pkgadd() {
	_arguments -s \
	'-d[Device]:device file:_files' \
	'-x[HTTP(S) proxy]:HTTP proxy: ' \
	'-k[Keystore]:keystore:_files' \
	'-P[Password to decrypt keystore]:password:_pkgadd_pass' \
	'-Y[Select packages by category]:category: ' \
	- set1 \
	'-n[Non-interactive mode]' \
	'-v[Trace all scripts]' \
	'-a[Admin file]:admin file:_files' \
	"-M[Don't use vfstab file]" \
	'-R[Root path]:root path:_files -/' \
	'-r[Response file]:response file:_files' \
	'-V[Alternate vfstab file]:vfstab file:_files' \
	'*:package instance:_pkg_instance --_opts uninstalled:-d' \
	- set2 \
	'-s[Spool package]:spool directory:_files -/' \
	'*:package instance:_pkg_instance --_opts uninstalled:-d'
}

_pkgadd "$@"