uncloud-cli/ucloud-cli.py

24 lines
523 B
Python
Executable File

import click
import sys
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
from helper import exception_handler
@click.group()
def entry_point():
pass
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)
entry_point()