dx/dxkit/commands/runtime/down.command.sh

32 lines
549 B
Bash

#!/usr/bin/env bash
# commands/runtime/down.command.sh
function cmd::runtime::down::on_load() {
flag::register \
--volumes \
--orphans \
--debug
}
function cmd::runtime::down::run() {
flag::parse "$@" || { cmd::runtime::down::help; return 1; }
runtime::down
}
function cmd::runtime::down::help() {
cat <<EOF
Usage: dx down [flags]
Stops the stack.
Flags:
--volumes Also remove volumes
--orphans Remove orphan containers
--debug Shell trace
Examples:
dx down
dx down --volumes
dx down --orphans
EOF
}