docker-example-drupal/run

30 lines
412 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
function cmd {
2023-01-21 15:50:45 +00:00
_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 {
2023-01-21 15:50:45 +00:00
docker compose run --rm "${@}"
}
eval "${@:-help}"