Skip to content

Commit

Permalink
49731: Add OpenBSD sys{clean,merge,patch,upgrade} completion
Browse files Browse the repository at this point in the history
  • Loading branch information
phy1729 committed Feb 3, 2022
1 parent 8bf0f0c commit e140510
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
6 changes: 6 additions & 0 deletions Completion/BSD/Command/_sysclean
Original file line number Diff line number Diff line change
@@ -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]'
6 changes: 6 additions & 0 deletions Completion/BSD/Command/_sysmerge
Original file line number Diff line number Diff line change
@@ -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]'
7 changes: 7 additions & 0 deletions Completion/BSD/Command/_syspatch
Original file line number Diff line number Diff line change
@@ -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]'
9 changes: 9 additions & 0 deletions Completion/BSD/Command/_sysupgrade
Original file line number Diff line number Diff line change
@@ -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:'

0 comments on commit e140510

Please sign in to comment.