You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
512 B
21 lines
512 B
import click
|
|
|
|
from ..utils import http_post
|
|
from .utils import handle_sync_response
|
|
|
|
|
|
@click.group(short_help='Manage your container registry account')
|
|
def registry():
|
|
pass
|
|
|
|
|
|
@registry.group(short_help='Manage your container registry project')
|
|
def project():
|
|
pass
|
|
|
|
|
|
@project.command(short_help='Create a registry project')
|
|
def create():
|
|
resp = http_post('/api/cloud/registry/projects')
|
|
handle_sync_response(resp)
|
|
click.echo('Congratulations! Your registry project was successfully created.')
|
|
|