converted to python package
This commit is contained in:
parent
51e1130071
commit
8bb860024a
23 changed files with 110 additions and 309 deletions
27
bin/ucloud-cli
Executable file
27
bin/ucloud-cli
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import click
|
||||
import sys
|
||||
|
||||
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
|
||||
|
||||
from ucloud_cli.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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue