The usage listed recreate but the dispatcher did not know it: myos recreate exited 2 saying the command was unknown. status was missing too, and -H was parsed into a variable nothing ever reads, so it was accepted and ignored. It now refuses rather than pretending.
11 lines
357 B
Bash
11 lines
357 B
Bash
#shellcheck shell=sh
|
|
# myos recreate remove the containers and create them again
|
|
# myos reload the same, under the name the make engine used
|
|
myos_cmd_recreate() {
|
|
# shellcheck source=lib/cmd/_compose.sh
|
|
. "$MYOS_ROOT/lib/cmd/_compose.sh"
|
|
MYOS_ARGS="--force-recreate ${MYOS_ARGS:-}"
|
|
myos_cmd_compose up
|
|
}
|
|
myos_cmd_reload() { myos_cmd_recreate; }
|