mirror of
https://git.isptech.ru/ISPsystem/isp-maintenance.git
synced 2025-11-03 17:03:03 +01:00
Add: core cli, lazy_group, example apps
This commit is contained in:
13
isp_maintenance/apps/vm6/nodes/commands.py
Normal file
13
isp_maintenance/apps/vm6/nodes/commands.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import click
|
||||
|
||||
|
||||
@click.group(help='nodes command for lazy example')
|
||||
def cli():
|
||||
pass
|
||||
|
||||
|
||||
@cli.command(name='list')
|
||||
def nodes_list():
|
||||
click.echo('NODES LIST: etc...')
|
||||
for num in range(1, 10):
|
||||
click.echo(num)
|
||||
Reference in New Issue
Block a user