added command line arguments to run tray publisher

This commit is contained in:
Jakub Trllo 2022-02-21 17:25:12 +01:00
parent 96981a05d3
commit f27d705577
2 changed files with 11 additions and 0 deletions

View file

@ -42,6 +42,12 @@ def standalonepublisher():
PypeCommands().launch_standalone_publisher()
@main.command()
def traypublisher():
"""Show new OpenPype Standalone publisher UI."""
PypeCommands().launch_traypublisher()
@main.command()
@click.option("-d", "--debug",
is_flag=True, help=("Run pype tray in debug mode"))

View file

@ -80,6 +80,11 @@ class PypeCommands:
from openpype.tools import standalonepublish
standalonepublish.main()
@staticmethod
def launch_traypublisher():
from openpype.tools import traypublisher
traypublisher.main()
@staticmethod
def publish(paths, targets=None, gui=False):
"""Start headless publishing.