Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -l/--list option to bash/fish/zsh completion #127

Merged
merged 3 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions res/completions/arch-update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _arch-update() {
local arg="${2}"
local -a opts
opts=('-c --check
-l --list
-n --news
-h --help
-V --version')
Expand Down
1 change: 1 addition & 0 deletions res/completions/arch-update.fish
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
complete -c arch-update -f

complete -c arch-update -s c -l check -d 'Check for available updates'
complete -c arch-update -s l -l list -d 'Display the list of pending updates'
complete -c arch-update -s n -l news -d 'Display latest Arch news'
complete -c arch-update -s h -l help -d 'Display the help message'
complete -c arch-update -s V -l version -d 'Display version information'
1 change: 1 addition & 0 deletions res/completions/arch-update.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
local -a opts
opts=(
{-c,--check}'[Check for available updates]'
{-l,--list}'[Display the list of pending updates]'
{-n,--news}'[Display latest Arch news]'
{-h,--help}'[Display the help message]'
{-V,--version}'[Display version information]'
Expand Down