mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add --port option to textual console. (#2258)
* Add --port option to textual console. * Changelog. * Address review feedback. * Mark unpredictable test as xfail. This test gets an xfail mark until #2254 is open. * Make DEVTOOLS_PORT a constant. Related review: https://github.com/Textualize/textual/pull/2258\#discussion_r1165210395 * Factor logic into function. Related review: https://github.com/Textualize/textual/pull/2258\#discussion_r1165298259 * Remove dead import.
This commit is contained in:
committed by
GitHub
parent
e32cdbb390
commit
bb2c31ba35
@@ -90,6 +90,20 @@ Multiple groups may be excluded, for example to exclude everything except warnin
|
||||
textual console -x SYSTEM -x EVENT -x DEBUG -x INFO
|
||||
```
|
||||
|
||||
### Custom port
|
||||
|
||||
You can use the option `--port` to specify a custom port to run the console on, which comes in handy if you have other software running on the port that Textual uses by default:
|
||||
|
||||
```bash
|
||||
textual console --port 7342
|
||||
```
|
||||
|
||||
Then, use the command `run` with the same `--port` option:
|
||||
|
||||
```bash
|
||||
textual run --dev --port 7342 my_app.py
|
||||
```
|
||||
|
||||
|
||||
## Textual log
|
||||
|
||||
|
||||
Reference in New Issue
Block a user