-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding .drush-use and drush-wrapper to templat.e
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# DRUSH WRAPPER | ||
# | ||
# A wrapper script which launches the Drush that is in your project's /vendor | ||
# directory. Copy it to the root of your project and edit as desired. | ||
# You may rename this script to 'drush', if doing so does not cause a conflict | ||
# (e.g. with a folder __ROOT__/drush). | ||
# | ||
# Below are options which you might want to add. More info at | ||
# `drush topic core-global-options`: | ||
# | ||
# --local Only discover commandfiles/site aliases/config that are | ||
# inside your project dir. | ||
# --alias-path A list of directories where Drush will search for site | ||
# alias files. | ||
# --config A list of paths to config files | ||
# --include A list of directories to search for commandfiles. | ||
# | ||
# Note that it is recommended to use --local when using a drush | ||
# wrapper script. | ||
# | ||
# See the 'drush' script in the Drush installation root (../drush) for | ||
# an explanation of the different 'drush' scripts. | ||
# | ||
# IMPORTANT: Modify the path below if your 'vendor' directory has been | ||
# relocated to another location in your composer.json file. | ||
# `../vendor/bin/drush.launcher --local $@` is a common variant for | ||
# composer-managed Drupal sites. | ||
# | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
cd "`dirname $0`" | ||
|
||
vendor/bin/drush.launcher --root=${DIR}/docroot "$@" --alias-path=drush/site-aliases --include=drush/includes |