Skip to content

Commit

Permalink
config: add sambal entrypoint script
Browse files Browse the repository at this point in the history
you can now just run by typing "sambal" if the module is installed

Closes #40
  • Loading branch information
robvdl committed Mar 16, 2024
1 parent a00ecf0 commit 4e9716b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ Starting Sambal

To start a development server just run:

python3 -m sambal
sambal

or running as a module does the same:

python -m sambal

The web interface can then be accessed at http://localhost:8000

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ test = [
[project.license]
text = "GPL-3.0-only"

[project.scripts]
sambal = "sambal:__main__"

[tool.setuptools]
include-package-data = true
license-files = [
Expand Down

0 comments on commit 4e9716b

Please sign in to comment.