[cli] renamed init-project to init
This commit is contained in:
parent
7ff8d803ee
commit
446db4ee27
|
@ -342,7 +342,7 @@ def update_db(domains):
|
||||||
@click.argument('project')
|
@click.argument('project')
|
||||||
@click.option('--repo', default=None)
|
@click.option('--repo', default=None)
|
||||||
@cli.command()
|
@cli.command()
|
||||||
def init_project(project, repo):
|
def init(project, repo):
|
||||||
if not re.match('^[a-z0-9_]+$', project, re.I):
|
if not re.match('^[a-z0-9_]+$', project, re.I):
|
||||||
click.echo('Project name must match "^[a-z0-9_]+$", retry.', err=True)
|
click.echo('Project name must match "^[a-z0-9_]+$", retry.', err=True)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue