mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Changed main input to accept multiple version ids
This commit is contained in:
parent
3faee05cf6
commit
ef9ab3bcdc
1 changed files with 6 additions and 6 deletions
|
|
@ -4,28 +4,28 @@ from ayon_core.tools.utils import get_ayon_qt_app
|
|||
from ayon_core.tools.push_to_project.ui import PushToContextSelectWindow
|
||||
|
||||
|
||||
def main_show(project_name, version_id):
|
||||
def main_show(project_name, version_ids):
|
||||
app = get_ayon_qt_app()
|
||||
|
||||
window = PushToContextSelectWindow()
|
||||
window.show()
|
||||
window.set_source(project_name, version_id)
|
||||
window.set_source(project_name, version_ids)
|
||||
|
||||
app.exec_()
|
||||
|
||||
|
||||
@click.command()
|
||||
@click.option("--project", help="Source project name")
|
||||
@click.option("--version", help="Source version id")
|
||||
def main(project, version):
|
||||
@click.option("--versions", help="Source version ids")
|
||||
def main(project, versions):
|
||||
"""Run PushToProject tool to integrate version in different project.
|
||||
|
||||
Args:
|
||||
project (str): Source project name.
|
||||
version (str): Version id.
|
||||
versions (str): comma separated versions for same context
|
||||
"""
|
||||
|
||||
main_show(project, version)
|
||||
main_show(project, versions)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue