build: add justfile

This commit is contained in:
Oliver Davies 2023-02-21 08:18:55 +00:00
parent 3784535b07
commit a4ac338cfb
2 changed files with 11 additions and 29 deletions

29
run
View file

@ -1,29 +0,0 @@
#!/bin/bash
set -e
function cmd {
_dc php "${@}"
}
function composer {
cmd composer "${@}"
}
function drush {
cmd php vendor/bin/drush "${@}"
}
function help {
printf "%s <task> [args]\n\nTasks:\n" "${0}"
compgen -A function | grep -v "^_" | cat -n
printf "\nExtended help:\n Each task has comments for general usage\n"
}
function _dc {
docker compose run --rm "${@}"
}
eval "${@:-help}"