init
This commit is contained in:
parent
aac78ff993
commit
daced3babb
24 changed files with 1485 additions and 47 deletions
29
{{ package_name }}/{{ python_package }}/cli/config.py.jinja
Normal file
29
{{ package_name }}/{{ python_package }}/cli/config.py.jinja
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
from rich.console import Console
|
||||
import typer
|
||||
|
||||
from {{ python_package }}.cli.common import verbose_callback
|
||||
from {{ python_package }}.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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue