Merge pull request #138 from ynput/enhancement/remove-multijson-publishing

Remove multi-context restrictions for publishing image sequences on farm
This commit is contained in:
Ondřej Samohel 2024-03-18 15:32:48 +01:00 committed by GitHub
commit 8a804ce991
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 37 additions and 44 deletions

View file

@ -103,19 +103,18 @@ def extractenvironments(output_json_path, project, asset, task, app, envgroup):
@main_cli.command()
@click.argument("paths", nargs=-1)
@click.option("-t", "--targets", help="Targets module", default=None,
@click.argument("path", required=True)
@click.option("-t", "--targets", help="Targets", default=None,
multiple=True)
@click.option("-g", "--gui", is_flag=True,
help="Show Publish UI", default=False)
def publish(paths, targets, gui):
def publish(path, targets, gui):
"""Start CLI publishing.
Publish collects json from paths provided as an argument.
More than one path is allowed.
Publish collects json from path provided as an argument.
S
"""
Commands.publish(list(paths), targets, gui)
Commands.publish(path, targets, gui)
@main_cli.command(context_settings={"ignore_unknown_options": True})