uncloud-cli/ucloud-cli.py

24 lines
523 B
Python
Raw Normal View History

2019-07-17 14:58:39 +00:00
import click
import sys
2019-07-03 11:26:33 +00:00
2019-07-17 14:58:39 +00:00
from commands.vm import vm
from commands.user import user
from commands.host import host
from commands.image import image
from commands.network import network
2019-07-03 11:26:33 +00:00
from helper import exception_handler
2019-07-17 14:58:39 +00:00
@click.group()
def entry_point():
pass
2019-07-03 11:26:33 +00:00
2019-07-17 14:58:39 +00: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 14:58:39 +00:00
entry_point()