Skip to content

Commit

Permalink
Add CLI as an entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Ingram committed Feb 7, 2022
1 parent 3ba1184 commit 41a5045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "dark_star"
name = "darkstar"
authors = [{name = "Felix Ingram", email = "[email protected]"}]
license = {file = "LICENSE"}
classifiers = ["License :: OSI Approved :: Apache Software License"]
Expand All @@ -19,3 +19,6 @@ dependencies = [

[project.urls]
Home = "https://github.com/lllama/dark-star"

[project.scripts]
darkstar = "darkstar.__main__:main"
3 changes: 2 additions & 1 deletion src/darkstar/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ def new_route():
print("Adding new route")


cli(prog_name="cli")
def main():
cli(prog_name="cli")

0 comments on commit 41a5045

Please sign in to comment.