Repository navigation
feat(commands): add ddev tablepro global host command - #8580
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
tyler36
left a comment
There was a problem hiding this comment.
One first glance, looks OK to me.
I'm on WSL2 so unable to confirm the command functions as expected.
Test
Command fails on WSL2, as expected.
$ ddev tablepro
Command 'tablepro' cannot be used with your OS, skipping /home/user47/.ddev/commands/host/tablepro
Error: unknown command "tablepro" for "ddev"|
Hi @tyler36, thanks for taking a look! Yes, tablepro is macOS only, since TablePro is a native macOS app. The script is already gated with |
|
Thanks for getting this in. For the future, please use the "rebase" option under update, as it makes your PR more maintainable. In this simple PR it may not make any difference, but it sure helps if you do it that way. |
rfay
left a comment
There was a problem hiding this comment.
This all looks good, thanks!
I manually tested with mysql:8.4 and postgres:17
It looks like a great tool too!
ddev tablepro global host command
|
🎉 This PR is included in the v1.25.4 release. |
The Issue
TablePro is a native macOS database client. DDEV ships host commands for TablePlus, Sequel Ace, Querious, DBeaver and HeidiSQL, but not for TablePro, so there is no
ddev tablepro.This matters because DDEV assigns the database a new host port on every
ddev start, so a saved connection in the GUI goes stale. The host command is what readsDDEV_HOST_DB_PORTeach time.How This PR Solves The Issue
Adds
pkg/ddevapp/global_dotddev_assets/commands/host/tablepro, modeled on the existingtablepluscommand:no_recursionre-exec pattern as the other host commands.mysql://orpostgres://fromDDEV_DATABASE_FAMILYandDDEV_HOST_DB_PORT, with DDEV'sdb:db@.../dbcredentials.name=ddev-${DDEV_SITENAME}so the connection is labeled per project in the GUI.open -b com.TablePro, targeting TablePro by bundle ID. That matters because TablePlus also registers as a handler formysql://andpostgres://, and would otherwise win when both apps are installed.Gated by
## OSTypes: darwinand## HostBinaryExists: /Applications/TablePro.app, so the command only appears for macOS users who have TablePro installed.TablePro parses these URLs already, including the
nameparameter, so no changes are needed on its side for this to work.Docs updated in the same places the other database GUI commands are listed (
commands.md,cli.md,database-management.md,developer-tools.md), plus the spellcheck wordlist.Manual Testing Instructions
With TablePro installed in
/Applications:TablePro opens on the project database. Works for both MySQL/MariaDB and PostgreSQL projects. Stop the project first to check that the command starts it and then connects.
Automated Testing Overview
None. This matches the other GUI launcher host commands, which have no automated tests because they require a GUI app installed on the host.
Related Issue Link(s)
ddev tablepro) TableProApp/TablePro#1486Release/Deployment Notes
None. The command is additive and only surfaces when
/Applications/TablePro.appexists.