mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
pkginfo: add pypi/pkginfo completions
This commit is contained in:
parent
94a3a5ff37
commit
39e6570d73
1 changed files with 25 additions and 9 deletions
|
@ -1,9 +1,25 @@
|
||||||
#completion for pkginfo
|
# completions for Python pkginfo
|
||||||
|
if pkginfo --help | string match -qr 'Python'
|
||||||
complete -f -c pkginfo -o i -l installed -d 'List installed packages'
|
complete -f -c pkginfo -s h -l help -d 'Print help'
|
||||||
complete -f -c pkginfo -o l -l list -a '(__fish_crux_packages)' -r -d 'Package whose files to list'
|
complete -x -c pkginfo -s m -l metadata-version -d 'Override metadata version'
|
||||||
complete -f -c pkginfo -o o -l owner -d 'Print the package owning file matching pattern'
|
complete -x -c pkginfo -s f -l field -d 'Specify an output field (repeatable)'
|
||||||
complete -f -c pkginfo -o f -l footprint -d 'Print footprint for file'
|
complete -x -c pkginfo -s d -l download-url-prefix -d 'Download URL prefix'
|
||||||
complete -f -c pkginfo -o r -l root -d 'Specify alternative installation root'
|
complete -f -c pkginfo -l simple -d 'Output as simple key-value pairs'
|
||||||
complete -f -c pkginfo -o v -l version -d 'Print version of pkgutils'
|
complete -f -c pkginfo -s s -l skip -d 'Skip missing values in simple output'
|
||||||
complete -f -c pkginfo -o h -l help -d 'Print help'
|
complete -f -c pkginfo -s S -l no-skip -d 'Do not skip missing values in simple output'
|
||||||
|
complete -f -c pkginfo -l single -d 'Output delimited values'
|
||||||
|
complete -x -c pkginfo -l item-delim -d 'Delimiter for fields in single-line output'
|
||||||
|
complete -x -c pkginfo -l sequence-delim -d 'Delimiter for multi-valued fields'
|
||||||
|
complete -f -c pkginfo -l csv -d 'Output as CSV'
|
||||||
|
complete -f -c pkginfo -l ini -d 'Output as INI'
|
||||||
|
complete -f -c pkginfo -l json -d 'Output as JSON'
|
||||||
|
# completions for CRUX Linux' pkginfo
|
||||||
|
else
|
||||||
|
complete -f -c pkginfo -o i -l installed -d 'List installed packages'
|
||||||
|
complete -f -c pkginfo -o l -l list -a '(__fish_crux_packages)' -r -d 'Package whose files to list'
|
||||||
|
complete -f -c pkginfo -o o -l owner -d 'Print the package owning file matching pattern'
|
||||||
|
complete -f -c pkginfo -o f -l footprint -d 'Print footprint for file'
|
||||||
|
complete -f -c pkginfo -o r -l root -d 'Specify alternative installation root'
|
||||||
|
complete -f -c pkginfo -o v -l version -d 'Print version of pkgutils'
|
||||||
|
complete -f -c pkginfo -o h -l help -d 'Print help'
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue