mirror of
https://git.isptech.ru/ISPsystem/isp-maintenance.git
synced 2025-09-13 21:43:08 +02:00
Update: dockerize app, rename pkg to mgrctl, fix imports
This commit is contained in:
0
mgrctl/apps/dci6/auth/__init__.py
Normal file
0
mgrctl/apps/dci6/auth/__init__.py
Normal file
12
mgrctl/apps/dci6/auth/commands.py
Normal file
12
mgrctl/apps/dci6/auth/commands.py
Normal 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')
|
Reference in New Issue
Block a user