2019-12-02 17:37:14 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2019-07-17 14:58:39 +00:00
|
|
|
import click
|
2019-11-17 18:54:39 +00:00
|
|
|
import sys
|
2019-12-02 17:37:14 +00:00
|
|
|
|
|
|
|
from ucloud_cli.commands.vm import vm
|
|
|
|
from ucloud_cli.commands.user import user
|
|
|
|
from ucloud_cli.commands.host import host
|
|
|
|
from ucloud_cli.commands.image import image
|
|
|
|
from ucloud_cli.commands.network import network
|
2019-07-03 11:26:33 +00:00
|
|
|
|
2019-12-02 17:37:14 +00:00
|
|
|
from ucloud_cli.helper import exception_handler
|
2019-07-03 11:26:33 +00:00
|
|
|
|
2019-11-17 18:54:39 +00:00
|
|
|
|
2019-07-17 14:58:39 +00:00
|
|
|
@click.group()
|
|
|
|
def entry_point():
|
|
|
|
pass
|
2019-07-03 11:26:33 +00:00
|
|
|
|
2019-12-02 17:37:14 +00:00
|
|
|
|
2019-07-17 14:58:39 +00:00
|
|
|
if __name__ == "__main__":
|
2019-11-17 18:54:39 +00:00
|
|
|
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 14:58:39 +00:00
|
|
|
entry_point()
|