refactor: move Drupal into a subdirectory

This commit is contained in:
Oliver Davies 2022-07-12 23:35:26 +01:00
commit dac6c27241
10 changed files with 10448 additions and 0 deletions

29
run Executable file
View file

@ -0,0 +1,29 @@
#!/bin/bash
set -e
function cmd {
_dc php-fpm "${@}"
}
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}"