Iterate on docker-stacks.sh

This commit is contained in:
Joey Hafner 2023-10-09 12:05:52 -07:00
parent 22fa9912e6
commit 7e2177deb8

View File

@ -38,7 +38,7 @@ function compose_up_recreate {
} }
function main { function main {
echo "\$OPERATION is $OPERATION" echo "\$@ is $@"
echo "Parse global flags" echo "Parse global flags"
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case $1 in case $1 in
@ -62,9 +62,11 @@ function main {
case $1 in case $1 in
-f | --force) -f | --force)
FORCE=true FORCE=true
echo "Force is true"
;; ;;
up) up)
true echo "Operation is up"
exit
;; ;;
*) *)
echo "Unrecognized operation \'$1\'" echo "Unrecognized operation \'$1\'"
@ -80,6 +82,8 @@ function main {
case $1 in case $1 in
down) down)
true true
echo "Operation is down"
exit
;; ;;
*) *)
echo "Unrecognized operation \'$1\'" echo "Unrecognized operation \'$1\'"