Adjust name to cli. Add second command.
This commit is contained in:
parent
2bd027b00f
commit
ad49b6d0fe
2 changed files with 6 additions and 1 deletions
|
|
@ -9,3 +9,8 @@ def check_health(url: str):
|
|||
print(
|
||||
f"Ehem... Yeah... so... I've definitely checked {url}... I just don't remember clearly if it was alive or not..."
|
||||
)
|
||||
|
||||
|
||||
@app.command()
|
||||
def explode():
|
||||
print("Pew bam boom")
|
||||
|
|
@ -7,7 +7,7 @@ readme = "README.md"
|
|||
packages = [{include = "camisatoshi_wordpress_reports"}]
|
||||
|
||||
[tool.poetry.scripts]
|
||||
camisatoshi-wordpress-reports = "camisatoshi_wordpress_reports.main:app"
|
||||
camisatoshi-wordpress-reports = "camisatoshi_wordpress_reports.cli:app"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.9"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue