mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Add completion for the changelog subcommand
This commit is contained in:
parent
b118ed69d3
commit
89e48ba0b3
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
function __fish_apt_no_subcommand --description 'Test if apt has yet to be given the subcommand'
|
function __fish_apt_no_subcommand --description 'Test if apt has yet to be given the subcommand'
|
||||||
for i in (commandline -opc)
|
for i in (commandline -opc)
|
||||||
if contains -- $i update upgrade full-upgrade search list install show remove edit-sources purge
|
if contains -- $i update upgrade full-upgrade search list install show remove edit-sources purge changelog
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -11,7 +11,7 @@ end
|
||||||
|
|
||||||
function __fish_apt_use_package --description 'Test if apt command should have packages as potential completion'
|
function __fish_apt_use_package --description 'Test if apt command should have packages as potential completion'
|
||||||
for i in (commandline -opc)
|
for i in (commandline -opc)
|
||||||
if contains -- $i install remove upgrade full-upgrade show search purge
|
if contains -- $i install remove upgrade full-upgrade show search purge changelog
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -66,3 +66,6 @@ __fish_apt_subcommand full-upgrade -r --description 'Upgrade packages, removing
|
||||||
|
|
||||||
# Purge
|
# Purge
|
||||||
__fish_apt_subcommand purge -x --description 'Remove packages and delete their config files'
|
__fish_apt_subcommand purge -x --description 'Remove packages and delete their config files'
|
||||||
|
|
||||||
|
# Changelog
|
||||||
|
__fish_apt_subcommand changelog -r --description 'Download and display package changelog'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user