Clean up a bit
This commit is contained in:
parent
dd525668e7
commit
6f24b1f3e0
2 changed files with 4 additions and 9 deletions
|
|
@ -6,8 +6,8 @@ app = typer.Typer()
|
|||
|
||||
|
||||
@app.command()
|
||||
def check_health(url: str):
|
||||
controllers.check_health(url)
|
||||
def check_health():
|
||||
controllers.check_health()
|
||||
|
||||
|
||||
@app.command()
|
||||
|
|
|
|||
|
|
@ -6,10 +6,5 @@ from woocommerce import API
|
|||
API_CONFIG = dotenv_values(
|
||||
dotenv_path=Path.home() / Path(".camisatoshi-wordpress-reports/.env")
|
||||
)
|
||||
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..."
|
||||
)
|
||||
print(Path("~/.camisatoshi-wordpress-reports/.env"))
|
||||
print(f"By the way, I found this: {API_CONFIG}")
|
||||
def check_health():
|
||||
print(f"Connecting to the configured woocomerce at {API_CONFIG['URL']}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue