fuerte completion fix rosmsg and rossrv, -users, +list

This commit is contained in:
Thibault Kruse 2012-02-15 20:20:06 +00:00
parent b2e8cdb42a
commit 65e13ba9fc
2 changed files with 8 additions and 8 deletions

View File

@ -363,7 +363,7 @@ function _roscomplete_rossrv {
arg="${COMP_WORDS[COMP_CWORD]}"
if [[ $COMP_CWORD == 1 ]]; then
opts="show users md5 package packages"
opts="show list md5 package packages"
COMPREPLY=($(compgen -W "$opts" -- ${arg}))
elif [[ $COMP_CWORD == 2 ]]; then
case ${COMP_WORDS[1]} in
@ -375,7 +375,7 @@ function _roscomplete_rossrv {
opts=`rospack list-names`
COMPREPLY=($(compgen -W "$opts" -- ${arg}))
;;
packages)
packages|list)
# This shouldn't really have a completion rule
;;
esac
@ -722,7 +722,7 @@ function _roscomplete_rosmsg {
arg="${COMP_WORDS[COMP_CWORD]}"
if [[ $COMP_CWORD == 1 ]]; then
opts="show users md5 package packages"
opts="show list md5 package packages"
COMPREPLY=($(compgen -W "$opts" -- ${arg}))
elif [[ $COMP_CWORD == 2 ]]; then
case ${COMP_WORDS[1]} in
@ -734,7 +734,7 @@ function _roscomplete_rosmsg {
opts=`rospack list-names`
COMPREPLY=($(compgen -W "$opts" -- ${arg}))
;;
packages)
packages|list)
# This shouldn't really have a completion rule
;;
esac

View File

@ -509,7 +509,7 @@ function _roscomplete_rosmsg {
if [[ ${CURRENT} == 2 ]]; then
opts="show users md5 package packages"
opts="show list md5 package packages"
reply=(${=opts})
elif [[ ${CURRENT} == 3 ]]; then
case ${=${(s: :)words}[2]} in
@ -521,7 +521,7 @@ function _roscomplete_rosmsg {
opts=`rospack list-names`
reply=(${=opts})
;;
packages)
packages|list)
# This shouldn't really have a completion rule
;;
esac
@ -572,7 +572,7 @@ function _roscomplete_rossrv {
if [[ ${CURRENT} == 2 ]]; then
opts="show users md5 package packages"
opts="show list md5 package packages"
reply=(${=opts})
elif [[ ${CURRENT} == 3 ]]; then
case ${=${(s: :)words}[2]} in
@ -584,7 +584,7 @@ function _roscomplete_rossrv {
opts=`rospack list-names`
reply=(${=opts})
;;
packages)
packages|list)
# This shouldn't really have a completion rule
;;
esac