dk: stop, logs et down acceptent maintenant un argument

This commit is contained in:
Jephté Clain 2019-03-28 10:19:55 +04:00
parent df788f6159
commit 7a728a9d34
1 changed files with 21 additions and 3 deletions

24
dk
View File

@ -528,8 +528,12 @@ while [ $# -gt 0 ]; do
auto_service "${args[@]}" || die
;;
k|stop)
args=()
while [ $# -gt 0 -a "$1" != -- ]; do
args+=("$1"); shift
done
enote "Profil $PROFILE"
auto_stop || die
auto_stop "${args[@]}" || die
;;
1|up)
args=()
@ -539,8 +543,22 @@ while [ $# -gt 0 ]; do
enote "Profil $PROFILE"
auto_up "${args[@]}" && auto_logs || die
;;
l|logs) auto_logs || die;;
0|down) auto_down || die;;
l|logs)
args=()
while [ $# -gt 0 -a "$1" != -- ]; do
args+=("$1"); shift
done
enote "Profil $PROFILE"
auto_logs "${args[@]}" || die
;;
0|down)
args=()
while [ $# -gt 0 -a "$1" != -- ]; do
args+=("$1"); shift
done
enote "Profil $PROFILE"
auto_down "${args[@]}" || die
;;
d|brd)
do_auto_down=1
function auto_down_trap() {