add support for -containers keyword

This commit is contained in:
William Hubbs
2015-12-03 14:09:38 -06:00
parent f5cf1136e7
commit 627e925463
4 changed files with 48 additions and 2 deletions

View File

@@ -79,7 +79,18 @@ provide() {
[ -n "$*" ] && echo "provide $*"
}
keyword() {
[ -n "$*" ] && echo "keyword $*"
local c x
set -- $*
while [ -n "$*" ]; do
case "$1" in
-containers) x="$(_get_containers)" ;;
!-containers) x="$(_get_containers_remove)" ;;
*) x=$1 ;;
esac
c="${c}${x} "
shift
done
[ -n "$c" ] && echo "keyword $c"
}
# Describe the init script to the user