dx/dxkit/commands/setup.command.sh

27 lines
No EOL
405 B
Bash

#!/usr/bin/env bash
load_command build
load_command init
function cmd::setup::run() {
if ! flag::parse "$@"; then
cmd::setup::help
return 1
fi
build::run
init::run "${ENVIRONMENT:-dev}"
}
function cmd::setup::help() {
cat <<EOF
Usage: dx setup [flags]
Runs build followed by init in a single step.
Accepts all flags from both commands.
$(cmd::build::help)
$(cmd::init::help)
EOF
}