Add: core cli, lazy_group, example apps

This commit is contained in:
2024-02-11 03:01:18 +09:00
parent c8c7060201
commit c776632195
13 changed files with 142 additions and 15 deletions

View File

@@ -0,0 +1,12 @@
import click
@click.group(help='access command for lazy example')
@click.option('--debug/--no-debug', default=False)
def cli(debug):
click.echo(f"Debug mode is {'on' if debug else 'off'}")
@cli.command()
def enable():
click.echo('Access granted')