diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-03 14:30:43 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-03 14:30:43 +0000 |
commit | 2e6a35c946f68687c0a8c295c788cd22fa6f6bd3 (patch) | |
tree | b0875eceff1b79da445ccedd6174dbf2b9a33788 | |
parent | Added epm completion. (diff) | |
download | gentoo-bashcomp-2e6a35c946f68687c0a8c295c788cd22fa6f6bd3.tar.gz gentoo-bashcomp-2e6a35c946f68687c0a8c295c788cd22fa6f6bd3.tar.bz2 gentoo-bashcomp-2e6a35c946f68687c0a8c295c788cd22fa6f6bd3.zip |
gentoo bug 91060: equery files --filter and --help for equery subcommands.
svn path=/trunk/; revision=49
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gentoo | 25 |
2 files changed, 22 insertions, 8 deletions
@@ -1,5 +1,10 @@ ChangeLog for gentoo-bashcomp +2005-05-03 Aaron Walker <ka0ttic@gentoo.org> + + * Add --filter option for equery files and added --help to all + subcommand completions. Gentoo bug 91060. + 2005-05-01 Aaron Walker <ka0ttic@gentoo.org> * Added glsa-check completion. @@ -994,18 +994,25 @@ _equery() echo -n "# Not implemented! " ;; f?(iles)) + + if [[ ${prev} == --filter* || ${cur} == --filter=* ]] ; then + COMPREPLY=() + return 0 + fi + # Only complete if the previous entry on the command line is not # a package name. if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then case $cur in -*) - COMPREPLY=($(compgen -W "--timestamp --md5sum --type" -- $cur)) + COMPREPLY=($(compgen -W "--help --timestamp --md5sum + --type --filter=" -- $cur)) ;; *) # Only installed packages can have their files listed. _pkgname -I $cur ;; - esac + esac fi ;; l?(ist)) @@ -1014,7 +1021,7 @@ _equery() if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then case "${cur}" in -*) - COMPREPLY=($(compgen -W "-i --installed -I --exclude-installed -p --portage-tree -o --overlay-tree" -- $cur)) + COMPREPLY=($(compgen -W "--help -i --installed -I --exclude-installed -p --portage-tree -o --overlay-tree" -- $cur)) ;; *) case "${prev}" in @@ -1047,7 +1054,7 @@ _equery() then case $cur in -*) - COMPREPLY=($(compgen -W "-c --category -e --earlyout" -- $cur)) + COMPREPLY=($(compgen -W "--help -c --category -e --earlyout" -- $cur)) ;; *) COMPREPLY=($(compgen -f -- $cur) \ @@ -1065,6 +1072,7 @@ _equery() if [[ ${prev} == ${mode} ]]; then # Complete on all package names. _pkgname -A $cur + COMPREPLY=($(compgen -W "${COMPREPLY[@]} --help" -- ${cur})) fi ;; g|depgraph) @@ -1073,7 +1081,7 @@ _equery() if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then case $cur in -*) - COMPREPLY=($(compgen -W "-U --no-useflags -l --linear" -- $cur)) + COMPREPLY=($(compgen -W "--help -U --no-useflags -l --linear" -- $cur)) ;; *) # Complete on installed package names. @@ -1088,7 +1096,7 @@ _equery() if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then case $cur in -*) - COMPREPLY=($(compgen -W "-a --all-packages -d --direct -D --indirect" -- $cur)) + COMPREPLY=($(compgen -W "--help -a --all-packages -d --direct -D --indirect" -- $cur)) ;; *) case $prev in @@ -1111,6 +1119,7 @@ _equery() if [[ ${prev} == ${mode} ]]; then # Only installed packages can have their integrity verified. _pkgname -I $cur + COMPREPLY=($(compgen -W "${COMPREPLY[@]} --help" -- ${cur})) fi ;; s?(ize)) @@ -1119,7 +1128,7 @@ _equery() if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then case $cur in -*) - COMPREPLY=($(compgen -W "-b --bytes" -- $cur)) + COMPREPLY=($(compgen -W "--help -b --bytes" -- $cur)) ;; *) # Only installed packages can have their size calculated. @@ -1134,7 +1143,7 @@ _equery() if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then case $cur in -*) - COMPREPLY=($(compgen -W "-i --installed -I --exclude-installed -p --portage-tree -o --overlay" -- $cur)) + COMPREPLY=($(compgen -W "--help -i --installed -I --exclude-installed -p --portage-tree -o --overlay" -- $cur)) ;; *) local glob loc |