1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-25 22:36:13 +01:00

add maintainer support for completion

This commit is contained in:
Dr. Werner Fink 2009-07-01 15:34:05 +00:00
parent 8f10292166
commit d0af05c108

12
dist/osc.complete vendored
View File

@ -273,6 +273,18 @@ co|checkout)
fi
fi
;;
maintainer)
if ((count == 1)) ; then
builtin compgen -W 'maintainer' -- "${cmdline[1]}"
else
if ((count == 2)) ; then
builtin compgen -W "$(command cat ~/.osc.projects)" -- "${cmdline[2]}"
fi
if ((count == 3)) ; then
builtin compgen -W "$(command osc ls "${cmdline[2]}")" -- "${cmdline[3]}"
fi
fi
;;
up|update)
if ((count == 1)) ; then
builtin compgen -W 'up update' -- "${cmdline[1]}"