diff --git a/camisatoshi_wordpress_reports/cli.py b/camisatoshi_wordpress_reports/cli.py index d5b0f53..f17a2c4 100644 --- a/camisatoshi_wordpress_reports/cli.py +++ b/camisatoshi_wordpress_reports/cli.py @@ -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() diff --git a/camisatoshi_wordpress_reports/controllers.py b/camisatoshi_wordpress_reports/controllers.py index 347698d..6e89d84 100644 --- a/camisatoshi_wordpress_reports/controllers.py +++ b/camisatoshi_wordpress_reports/controllers.py @@ -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']}")