Closed MG-MW closed 2 months ago
If you install textual-dev
you can use textual serve
. Does that help?
Oh, thanks! That's it exactly.
I can now just use an alias like this
alias harlequin_local='uvx --quiet --from textual-dev --with "harlequin[odbc, postgres]" --with "duckdb<1.1" -- \
textual serve --port=12345 --command \
harlequin'
and run it like this
harlequin_local path/to/my/duck.db
I cannot install it as a tool, but uv
is fast enough, so it doesn't really matter.
I'm usually not in an environment, where I have a proper terminal available. It would be nice, if I could open textual apps, installed via
uv
,pipx
,rye
, etc. on localhost and port forward via SSH to my local browser easily.Right now I can do something like this:
The command gets even longer if I want to provide arguments to the textual app. I could work around this by write a few bash functions, but it would be nice, if there was a way to maybe do something like
or