[#26] fejctl now fully replace Makefile & build

This commit is contained in:
Jef Roosens 2021-04-16 00:06:48 +02:00
parent 0ba31bd8ba
commit 0828dd36d6
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
4 changed files with 15 additions and 191 deletions

16
fejctl
View file

@ -132,14 +132,26 @@ function main() {
bin="${2:-server}"
case $cmd in
# Building
b | build ) build "$bin" ;;
br | build-release ) create_images rel ;;
# Running
r | run ) run "$bin" ;;
rr | run-release ) run_release ;;
s | stop ) stop ;;
# Ease of life
psql ) docker exec -it fej_db psql -U fej -d fej ;;
sh ) docker exec -it fej sh ;;
# Misc
docs ) cargo doc --no-deps ;;
format ) cargo fmt ;;
l | logs ) logs ;;
lint ) cargo fmt -- --check ;;
p | push | publish ) publish ;;
t | test ) tests ;;
s | stop ) stop ;;
p | push | publish ) publish ;;
* ) >&2 echo "Invalid command."; exit 1 ;;
esac
}