create cli command and empty process

This commit is contained in:
Pablo Martin 2024-06-06 11:50:01 +02:00
parent acc764afcf
commit 9b85107977
2 changed files with 15 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import pyfiglet
from dotenv import load_dotenv
from xexe.constants import PATHS
from xexe.processes import run_xe_healthcheck
logging.basicConfig(
level=logging.DEBUG,
@ -37,3 +38,10 @@ def smoke_test():
|__,'`-..--|__|--''
"""
)
@cli.command()
def xe_healthcheck():
logger.info("Running healthcheck against xe.com API.")
run_xe_healthcheck()
logger.info("Healthcheck attempt finished.")

7
xexe/processes.py Normal file
View file

@ -0,0 +1,7 @@
import logging
logger = logging.getLogger()
def run_xe_healthcheck():
logger.info("Checking checking")