-
-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow multiple directives including OSType and ProjectType in custom …
…command, fixes #2209 (#2452) * Allow multiple directives including OSType and ProjectType in custom command, fixes #2209 * Add drush, sequelpro, sequelace, typo3 and typo3cms, artisan and magento commands Co-authored-by: Joe Chellman <joe@shooflydesign.org>
- Loading branch information
Showing
16 changed files
with
257 additions
and
214 deletions.
There are no files selected for viewing
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
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
14 changes: 14 additions & 0 deletions
14
cmd/ddev/cmd/global_dotddev_assets/commands/host/sequelace
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,14 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
## Description: Run sequelace with current project database | ||
## Usage: sequelace | ||
## Example: "ddev sequelace" | ||
## OSTypes: darwin | ||
## HostBinaryExists: /Applications/Sequel ace.app | ||
|
||
set -x | ||
query="mysql://root:root@127.0.0.1:${DDEV_HOST_DB_PORT}/db" | ||
|
||
open "$query" -a "/Applications/Sequel Ace.app/Contents/MacOS/Sequel Ace" | ||
|
77 changes: 77 additions & 0 deletions
77
cmd/ddev/cmd/global_dotddev_assets/commands/host/sequelpro
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,77 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
## Description: Run sequelpro with current project database | ||
## Usage: sequelpro | ||
## Example: "ddev sequelpro" | ||
## OSTypes: darwin | ||
## HostBinaryExists: /Applications/Sequel Pro.app | ||
|
||
tmpdir=$(mktemp -d -t sequelpro-XXXXXXXXXX) | ||
templatepath="$tmpdir/sequelpro.spf" | ||
|
||
cat >$templatepath <<END | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>ContentFilters</key> | ||
<dict/> | ||
<key>auto_connect</key> | ||
<true/> | ||
<key>data</key> | ||
<dict> | ||
<key>connection</key> | ||
<dict> | ||
<key>database</key> | ||
<string>db</string> | ||
<key>host</key> | ||
<string>127.0.0.1</string> | ||
<key>name</key> | ||
<string>${DDEV_SITENAME}</string> | ||
<key>password</key> | ||
<string>root</string> | ||
<key>port</key> | ||
<integer>$DDEV_HOST_DB_PORT</integer> | ||
<key>rdbms_type</key> | ||
<string>mysql</string> | ||
<key>sslCACertFileLocation</key> | ||
<string></string> | ||
<key>sslCACertFileLocationEnabled</key> | ||
<integer>0</integer> | ||
<key>sslCertificateFileLocation</key> | ||
<string></string> | ||
<key>sslCertificateFileLocationEnabled</key> | ||
<integer>0</integer> | ||
<key>sslKeyFileLocation</key> | ||
<string></string> | ||
<key>sslKeyFileLocationEnabled</key> | ||
<integer>0</integer> | ||
<key>type</key> | ||
<string>SPTCPIPConnection</string> | ||
<key>useSSL</key> | ||
<integer>0</integer> | ||
<key>user</key> | ||
<string>root</string> | ||
</dict> | ||
</dict> | ||
<key>encrypted</key> | ||
<false/> | ||
<key>format</key> | ||
<string>connection</string> | ||
<key>queryFavorites</key> | ||
<array/> | ||
<key>queryHistory</key> | ||
<array/> | ||
<key>rdbms_type</key> | ||
<string>mysql</string> | ||
<key>rdbms_version</key> | ||
<string>5.5.44</string> | ||
<key>version</key> | ||
<integer>1</integer> | ||
</dict> | ||
</plist> | ||
END | ||
|
||
open "${templatepath}" | ||
|
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,10 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
## Description: Run artisan CLI inside the web container | ||
## Usage: artisan [flags] [args] | ||
## Example: "ddev artisan list" or "ddev artisan cache:clear" | ||
## ProjectTypes: laravel | ||
|
||
./artisan "$@" | ||
|
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,9 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
## Description: Run drush CLI inside the web container | ||
## Usage: drush [flags] [args] | ||
## Example: "ddev drush uli" or "ddev drush sql-cli" or "ddev drush --version" | ||
## ProjectTypes: drupal7,drupal8,drupal9,backdrop | ||
|
||
drush "$@" |
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,10 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
## Description: Run magento CLI inside the web container | ||
## Usage: magento [flags] [args] | ||
## Example: "ddev magento list" or "ddev magento maintenance:enable" or "ddev magento sampledata:reset" | ||
## ProjectTypes: magento2 | ||
|
||
bin/magento "$@" | ||
|
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,12 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
# This assumes that the typo3cms command will be in the $PATH; if in vendor/bin/typo3cms it will be | ||
|
||
## Description: Run typo3 console (typo3cms) command inside the web container | ||
## Usage: typo3cms [args] | ||
## Example: "ddev typo3cms cache:flush" or "ddev typo3cms database:export" | ||
## ProjectTypes: typo3 | ||
|
||
typo3 "$@" | ||
|
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,12 @@ | ||
#!/bin/bash | ||
|
||
#ddev-generated | ||
# This assumes that the typo3 command will be in the $PATH; if in vendor/bin/typo3 it will be | ||
|
||
## Description: Run typo3 command inside the web container | ||
## Usage: typo3 [args] | ||
## Example: "ddev typo3 site:list" or "ddev typo3 list" or "ddev typo3 extension:list" | ||
## ProjectTypes: typo3 | ||
|
||
typo3 "$@" | ||
|
Oops, something went wrong.