uncloud-cli/bin/ucloud-cli

28 lines
621 B
Text
Raw Normal View History

2019-12-02 22:37:14 +05:00
#!/usr/bin/env python3
2019-07-17 19:58:39 +05:00
import click
import sys
2019-07-03 16:26:33 +05:00
2019-12-31 17:09:52 +01:00
from uncloud_cli.commands.vm import vm
from uncloud_cli.commands.user import user
from uncloud_cli.commands.host import host
from uncloud_cli.commands.image import image
from uncloud_cli.commands.network import network
from uncloud_cli.helper import exception_handler
2019-07-03 16:26:33 +05:00
2019-07-17 19:58:39 +05:00
@click.group()
def entry_point():
pass
2019-07-03 16:26:33 +05:00
2019-12-02 22:37:14 +05:00
2019-07-17 19:58:39 +05:00
if __name__ == "__main__":
sys.excepthook = exception_handler
entry_point.add_command(vm)
entry_point.add_command(user)
entry_point.add_command(image)
entry_point.add_command(host)
entry_point.add_command(network)
2019-07-17 19:58:39 +05:00
entry_point()