break vm_action into vm.start() and vm.stop() and image.list() -> image._list()

This commit is contained in:
ahmadbilalkhalid 2019-09-01 22:09:08 +05:00
commit 5e543fa2aa
4 changed files with 17 additions and 6 deletions

View file

@ -14,7 +14,7 @@ def image():
@image.command("list")
@click.option("--public", is_flag=True)
@click.option("--private", is_flag=True)
def list(public, private):
def _list(public, private):
if public:
r = requests.get(f"{config('UCLOUD_API_SERVER')}/image/list-public")
print(load_dump_pretty(r.content))