2022-07-22 14:46:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
help () {
|
|
|
|
echo "Usage: ./pw [command]"
|
|
|
|
echo " "
|
|
|
|
echo "Commands:"
|
2022-07-22 14:50:30 +00:00
|
|
|
echo " build - Build the docker image with optional -f/--force"
|
|
|
|
echo " cmd - Run container with single command"
|
2022-07-22 14:46:45 +00:00
|
|
|
echo " compile - Run the compilation process"
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ "${1}" == "build" ]]; then
|
|
|
|
bash ./scripts/build.sh "${2}"
|
|
|
|
elif [[ "${1}" == "cmd" ]]; then
|
2022-07-22 14:50:30 +00:00
|
|
|
bash ./scripts/cmd.sh "${2}"
|
2022-07-22 14:46:45 +00:00
|
|
|
elif [[ "${1}" == "compile" ]]; then
|
|
|
|
bash ./scripts/compile.sh
|
|
|
|
else
|
|
|
|
help
|
|
|
|
fi
|