mirror of
https://github.com/Jguer/yay
synced 2024-10-05 23:59:13 +00:00
Add completions for --news
This commit is contained in:
parent
8dd08327b1
commit
976876961b
1
cmd.go
1
cmd.go
|
@ -91,6 +91,7 @@ Print specific options:
|
|||
-n --numberupgrades Print number of updates
|
||||
-s --stats Display system package statistics
|
||||
-u --upgrades Print update list
|
||||
-w --news Print arch news
|
||||
|
||||
Yay specific options:
|
||||
-c --clean Remove unneeded dependencies
|
||||
|
|
|
@ -65,8 +65,8 @@ _yay() {
|
|||
'c g i l p s u w y')
|
||||
upgrade=('asdeps asexplicit force needed nodeps assume-installed print recursive' 'p')
|
||||
yays=('clean gendb' 'c')
|
||||
print=('complete defaultconfig config numberupgrades stats upgrades' 'c d g n
|
||||
s u')
|
||||
print=('complete defaultconfig config numberupgrades stats upgrades news' 'c d g n
|
||||
s u w')
|
||||
common=('arch cachedir color config confirm dbpath debug gpgdir help hookdir logfile
|
||||
noconfirm noprogressbar noscriptlet quiet save mflags buildir editor
|
||||
makepkg pacman tar git gpg gpgflags config requestsplitn sudoloop nosudoloop
|
||||
|
|
|
@ -108,6 +108,7 @@ complete -c $progname -n $print -s d -l defaultconfig -d 'Print current yay conf
|
|||
complete -c $progname -n $print -s n -l numberupgrades -d 'Print number of updates' -f
|
||||
complete -c $progname -n $print -s s -l stats -d 'Display system package statistics' -f
|
||||
complete -c $progname -n $print -s u -l upgrades -d 'Print update list' -f
|
||||
complete -c $progname -n $print -s w -l news -d 'Print arch news'
|
||||
|
||||
# Transaction options (sync, remove, upgrade)
|
||||
for condition in sync remove upgrade
|
||||
|
|
|
@ -134,6 +134,7 @@ _pacman_opts_print_modifiers=(
|
|||
{-n,--numberupgrades}'[Print number of updates]'
|
||||
{-s,--stats}'[Display system package statistics]'
|
||||
{-u,--upgrades}'[Print update list]'
|
||||
{-w,--news}'[Print arch news]'
|
||||
)
|
||||
# options for passing to _arguments: options for --remove command
|
||||
_pacman_opts_remove=(
|
||||
|
|
Loading…
Reference in a new issue