smoke test cli command
This commit is contained in:
parent
7266964520
commit
26e638ac7b
1 changed files with 34 additions and 0 deletions
34
anaxi/cli.py
Normal file
34
anaxi/cli.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import importlib.metadata
|
||||
import logging
|
||||
|
||||
import click
|
||||
import pyfiglet
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format="%(asctime)s - [%(levelname)s] - %(filename)s - L%(lineno)d - %(message)s",
|
||||
handlers=[logging.StreamHandler()],
|
||||
)
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
@click.group()
|
||||
def cli():
|
||||
logger.info(pyfiglet.figlet_format("\nWelcome to anaxi", font="big"))
|
||||
logger.info(f"Running anaxi version: {importlib.metadata.version('anaxi')}")
|
||||
|
||||
|
||||
@cli.command()
|
||||
def smoke_test():
|
||||
print("Oink oink!")
|
||||
print(
|
||||
"""
|
||||
__,---.__
|
||||
,-' `-.__
|
||||
&/ `._\ _\\
|
||||
/ ''._
|
||||
| , (")
|
||||
|__,'`-..--|__|--''
|
||||
"""
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue