create cli command and empty process
This commit is contained in:
parent
acc764afcf
commit
9b85107977
2 changed files with 15 additions and 0 deletions
|
|
@ -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
7
xexe/processes.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import logging
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
def run_xe_healthcheck():
|
||||
logger.info("Checking checking")
|
||||
Loading…
Add table
Add a link
Reference in a new issue