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
16
camisatoshi_wordpress_reports/cli.py
Normal file
16
camisatoshi_wordpress_reports/cli.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import typer
|
||||
|
||||
|
||||
app = typer.Typer()
|
||||
|
||||
|
||||
@app.command()
|
||||
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue