mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
added cli commands for standalone publisher
This commit is contained in:
parent
8c84967087
commit
9db2eb3cc0
1 changed files with 19 additions and 0 deletions
|
|
@ -38,3 +38,22 @@ class StandAlonePublishModule(OpenPypeModule, ITrayAction, IHostModule):
|
|||
def run_standalone_publisher(self):
|
||||
args = get_openpype_execute_args("module", self.name, "launch")
|
||||
run_detached_process(args)
|
||||
|
||||
def cli(self, click_group):
|
||||
click_group.add_command(cli_main)
|
||||
|
||||
|
||||
@click.group(
|
||||
StandAlonePublishModule.name,
|
||||
help="StandalonePublisher related commands.")
|
||||
def cli_main():
|
||||
pass
|
||||
|
||||
|
||||
@cli_main.command()
|
||||
def launch():
|
||||
"""Launch StandalonePublisher tool UI."""
|
||||
|
||||
from openpype.tools import standalonepublish
|
||||
|
||||
standalonepublish.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue