20 lines
456 B
Bash
Executable File
20 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
|
|
help () {
|
|
echo "Usage: ./pw [command]"
|
|
echo " "
|
|
echo "Commands:"
|
|
echo " build - Build the docker image with optional -f/--force"
|
|
echo " cmd - Run container with single command"
|
|
echo " compile - Run the compilation process"
|
|
}
|
|
|
|
if [[ "${1}" == "build" ]]; then
|
|
bash ./scripts/build.sh "${2}"
|
|
elif [[ "${1}" == "cmd" ]]; then
|
|
bash ./scripts/cmd.sh "${2}"
|
|
elif [[ "${1}" == "compile" ]]; then
|
|
bash ./scripts/compile.sh
|
|
else
|
|
help
|
|
fi |