break vm_action into vm.start() and vm.stop() and image.list() -> image._list()
This commit is contained in:
parent
61d1633599
commit
5e543fa2aa
4 changed files with 17 additions and 6 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue