Allow setting SVN URL from setup_for_attract CLI command

This commit is contained in:
2016-09-20 14:47:23 +02:00
parent 8145d698bd
commit 6066362a9b
5 changed files with 64 additions and 24 deletions

View File

@@ -12,7 +12,8 @@ log = logging.getLogger(__name__)
@manager.command
@manager.option('-r', '--replace', dest='replace', action='store_true', default=False)
def setup_for_attract(project_url, replace=False):
@manager.option('-s', '--svn', dest='svn_url', nargs='?')
def setup_for_attract(project_url, replace=False, svn_url=None):
"""Adds Attract node types to the project.
Use --replace to replace pre-existing Attract node types
@@ -20,4 +21,4 @@ def setup_for_attract(project_url, replace=False):
"""
authentication.force_cli_user()
attract.setup.setup_for_attract(project_url, replace=replace)
attract.setup.setup_for_attract(project_url, replace=replace, svn_url=svn_url)