Split cli and controllers

This commit is contained in:
counterweight 2023-08-02 19:26:58 +02:00
parent 8c466a05b5
commit fc7e6665a0
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 6 additions and 3 deletions

View file

@ -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()

View 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..."
)