Skip to content

Commit c39ef43

Browse files
committed
Provide a console script for starting the server
1 parent 70b808a commit c39ef43

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ Run the language server
4848

4949
```bash
5050
# Run the server
51-
python -m lark_language_server
51+
lark-language-server
5252

5353
# Run with TCP (for debugging)
54-
python -m lark_language_server --tcp --host 127.0.0.1 --port 2087
54+
lark-language-server --tcp --host 127.0.0.1 --port 2087
5555
```
5656

5757
## Docs

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Download = "https://github.com/dynovaio/lark-parser-language-server/archive/refs
5555
Changelog = "https://github.com/dynovaio/lark-parser-language-server/blob/master/CHANGELOG.md"
5656
"Bug Tracker" = "https://github.com/dynovaio/lark-parser-language-server/issues"
5757

58+
[project.scripts]
59+
lark-language-server = "lark_parser_language_server.__main__:main"
60+
5861
[build-system]
5962
requires = ["poetry-core>=2.0.0,<3.0.0"]
6063
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)