Merge pull request #318 from Brikaa/piston-bash

Added bash shell option in piston script
This commit is contained in:
Thomas Hobson 2021-09-12 00:23:32 +12:00 committed by GitHub
commit 8c3d4cb77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

16
piston
View File

@ -23,24 +23,25 @@ case $1 in
echo " start Starts piston"
echo " stop Stops piston"
echo " restart Restarts piston"
echo " bash Opens a bash shell for the piston_api container"
echo
echo " update Fetches and applies latest updates"
echo
echo " <args..> Passthrough to piston cli tool"
echo
echo
echo "Development Commands:"
if [ $PISTON_ENV == dev ]; then
echo " clean-pkgs Clean any package build artifacts on disk"
echo " clean-repo Remove all packages from local repo"
echo " build-pkg <package> <version> Build a package"
else
echo " Switch to developement environment for more info"
echo " > piston switch dev"
fi
;;
@ -51,6 +52,7 @@ case $1 in
restart) docker_compose restart ;;
start) docker_compose up -d ;;
stop) docker_compose down ;;
bash) docker_compose exec api /bin/bash ;;
update)
git pull
@ -74,4 +76,4 @@ case $1 in
cd ../
node cli/index.js "$@"
;;
esac
esac