Split cli and controllers
This commit is contained in:
parent
8c466a05b5
commit
fc7e6665a0
2 changed files with 6 additions and 3 deletions
|
|
@ -1,14 +1,13 @@
|
||||||
import typer
|
import typer
|
||||||
|
|
||||||
|
import camisatoshi_wordpress_reports.controllers as controllers
|
||||||
|
|
||||||
app = typer.Typer()
|
app = typer.Typer()
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def check_health(url: str):
|
def check_health(url: str):
|
||||||
print(
|
controllers.check_health(url)
|
||||||
f"Ehem... Yeah... so... I've definitely checked {url}... I just don't remember clearly if it was alive or not..."
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
|
|
|
||||||
4
camisatoshi_wordpress_reports/controllers.py
Normal file
4
camisatoshi_wordpress_reports/controllers.py
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
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 what..."
|
||||||
|
)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue