1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

49731: Add OpenBSD sys{clean,merge,patch,upgrade} completion

This commit is contained in:
Matthew Martin 2022-02-02 19:26:23 -06:00
parent 8bf0f0cf45
commit e1405109a6
5 changed files with 35 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2022-02-02 Matthew Martin <phy1729@gmail.com>
* 49731: Completion/BSD/Command/_sysclean,
Completion/BSD/Command/_sysmerge,
Completion/BSD/Command/_syspatch,
Completion/BSD/Command/_sysupgrade: Add completers
2022-01-30 Mikael Magnusson <mikachu@gmail.com>
* 49694 + doc: Doc/Zsh/builtins.yo, Doc/Zsh/params.yo, Src/exec.c:

View file

@ -0,0 +1,6 @@
#compdef sysclean
_arguments -s : \
'(-p)-a[include filenames used by installed packages]' \
'-i[include ignored filenames]' \
'(-a)-p[output package names that are using obsolete files]'

View file

@ -0,0 +1,6 @@
#compdef sysmerge
_arguments -s : \
'-b[run non-interactively]' \
'-d[do not take any automatic action]' \
'-p[only compare configuration of packages]'

View file

@ -0,0 +1,7 @@
#compdef syspatch
_arguments \
'( -l -R -r)-c[list available patches]' \
'(-c -R -r)-l[list installed patches]' \
'(-c -l -r)-R[revert all patches]' \
'(-c -l -R )-r[revert the most recently installed patch]'

View file

@ -0,0 +1,9 @@
#compdef sysupgrade
_arguments -s -S -A '-*' : \
'-f[force an already applied upgrade]' \
'-k[keep the downloaded files]' \
'-n[do not reboot]' \
'(-s)-r[upgrade to the next release]' \
'(-r)-s[upgrade to a snapshot]' \
':installurl:'