mirror of
https://git.isptech.ru/ISPsystem/isp-maintenance.git
synced 2025-02-01 10:50:52 +01:00
33 lines
680 B
Python
33 lines
680 B
Python
|
#!/usr/bin/env python3
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# █▀▄▀█ █▀▀ █▀█ █▀▀ ▀█▀ █░░ ▀
|
||
|
# █░▀░█ █▄█ █▀▄ █▄▄ ░█░ █▄▄ ▄
|
||
|
# -- -- -- -- -- -- -- -- --
|
||
|
|
||
|
import click
|
||
|
|
||
|
from mgrctl import __version__
|
||
|
from mgrctl.cli.lazy_group import LazyGroup
|
||
|
|
||
|
|
||
|
@click.group(
|
||
|
cls=LazyGroup,
|
||
|
lazy_subcommands={
|
||
|
'vm6': 'mgrctl.apps.vm6.commands.cli',
|
||
|
'dci6': 'mgrctl.apps.dci6.commands.cli',
|
||
|
},
|
||
|
help='main CLI command for lazy example',
|
||
|
)
|
||
|
@click.version_option(
|
||
|
version=__version__,
|
||
|
package_name='mgrctl',
|
||
|
message=__version__
|
||
|
)
|
||
|
def cli():
|
||
|
pass
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
cli()
|