mirror of
https://git.isptech.ru/ISPsystem/isp-maintenance.git
synced 2025-02-01 10:50:52 +01:00
13 lines
259 B
Python
13 lines
259 B
Python
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')
|