This commit is contained in:
Waylon Walker 2023-05-15 11:37:32 -05:00
commit f3e79af444
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
22 changed files with 1798 additions and 0 deletions

View file

@ -0,0 +1,29 @@
from rich.console import Console
import typer
from marvin_sw_text_adventure.cli.common import verbose_callback
from marvin_sw_text_adventure.config import config as configuration
config_app = typer.Typer()
@config_app.callback()
def config(
verbose: bool = typer.Option(
False,
callback=verbose_callback,
help="show the log messages",
),
):
"configuration cli"
@config_app.command()
def show(
verbose: bool = typer.Option(
False,
callback=verbose_callback,
help="show the log messages",
),
):
Console().print(configuration)