Repository navigation
herd open and herd database commands #120
Replies: 2 comments
|
Hey @FaridAghili, There's no Until something like that is added, two small shell functions get you most of the way (zsh/bash, macOS): # open the current site in the browser (parked/linked dir name = site name)
fopen() { open "http://$(basename "$PWD").test"; }
# open the project's DB in TablePlus using the Laravel .env
fdb() {
set -a; . ./.env; set +a
local scheme=$DB_CONNECTION
[ "$scheme" = pgsql ] && scheme=postgresql
[ "$scheme" = mariadb ] && scheme=mysql
open "$scheme://$DB_USERNAME:$DB_PASSWORD@$DB_HOST:$DB_PORT/$DB_DATABASE"
}Use
|
|
Thanks, I created an issue from it, so I'm closing this thread now. Further conversation can be made in the related issue. |
Uh oh!
There was an error while loading. Please reload this page.
In herd there was some command for cli to open current project in browser, or database in table plus / TablePro like
herd openandherd dbIs there a similar command in Flock? I couldn't find it.
All reactions