mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
added cli commands to traypublisher module
This commit is contained in:
parent
d91274bb98
commit
2a54de9b53
1 changed files with 17 additions and 0 deletions
|
|
@ -48,3 +48,20 @@ class TrayPublishModule(OpenPypeModule, IHostModule, ITrayAction):
|
|||
"module", "traypublish_tool", "launch"
|
||||
)
|
||||
run_detached_process(args)
|
||||
|
||||
def cli(self, click_group):
|
||||
click_group.add_command(cli_main)
|
||||
|
||||
|
||||
@click.group(TrayPublishModule.name, help="TrayPublisher related commands.")
|
||||
def cli_main():
|
||||
pass
|
||||
|
||||
|
||||
@cli_main.command()
|
||||
def launch():
|
||||
"""Launch TrayPublish tool UI."""
|
||||
|
||||
from openpype.tools import traypublisher
|
||||
|
||||
traypublisher.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue