Add the run command

This commit is contained in:
Savanni D'Gerinel 2023-08-07 16:43:06 -04:00
parent 2eb7c5ca8c
commit ab33db4a22
1 changed files with 6 additions and 3 deletions

View File

@ -17,17 +17,20 @@ case $CMD in
test)
$CARGO test $MODULE $PARAMS
;;
run)
$CARGO run $MODULE $PARAMS
;;
release)
$CARGO build --release $MODULE $PARAMS
$CARGO run --release $MODULE $PARAMS
;;
clean)
$CARGO clean $MODULE
;;
"")
echo "No command specified. Use build | test | release | clean"
echo "No command specified. Use build | test | run | release | clean"
;;
*)
echo "$CMD is unknown. Use build | test | release | clean"
echo "$CMD is unknown. Use build | test | run | release | clean"
;;
esac