Add exec-ryujinx-tasks to subcommands list

This commit is contained in:
TSR Berry 2023-10-10 17:10:27 +02:00
parent 86f5fc3e0f
commit 96f87d0f89
No known key found for this signature in database
GPG Key ID: 52353C0A4CCA15E2
2 changed files with 30 additions and 2 deletions

View File

@ -26,7 +26,7 @@ Add the following step to your workflow:
## Available commands
```
usage: ryujinx_mako [-h] {setup-git,update-reviewers} ...
usage: ryujinx_mako [-h] {setup-git,update-reviewers,exec-ryujinx-tasks} ...
A python module to aid Ryujinx with project management and moderation
@ -34,9 +34,10 @@ options:
-h, --help show this help message and exit
subcommands:
{setup-git,update-reviewers}
{setup-git,update-reviewers,exec-ryujinx-tasks}
setup-git Configure git identity for Ryujinx-Mako
update-reviewers Update reviewers for the specified PR
exec-ryujinx-tasks Execute all Ryujinx tasks for a specific event
```
### setup-git
@ -66,3 +67,28 @@ positional arguments:
options:
-h, --help show this help message and exit
```
### exec-ryujinx-tasks
```
usage: ryujinx_mako exec-ryujinx-tasks [-h] --event-name EVENT_NAME
--event-path EVENT_PATH [-w WORKSPACE]
repo_path run_id
Execute all Ryujinx tasks for a specific event
positional arguments:
repo_path full name of the GitHub repository (format:
OWNER/REPO)
run_id The unique identifier of the workflow run
options:
-h, --help show this help message and exit
--event-name EVENT_NAME
the name of the event that triggered the workflow run
--event-path EVENT_PATH
the path to the file on the runner that contains the
full event webhook payload
-w WORKSPACE, --workspace WORKSPACE
the working directory on the runner
```

View File

@ -1,12 +1,14 @@
from typing import Type
from ryujinx_mako.commands._subcommand import Subcommand
from ryujinx_mako.commands.exec_ryujinx_tasks import ExecRyujinxTasks
from ryujinx_mako.commands.setup_git import SetupGit
from ryujinx_mako.commands.update_reviewers import UpdateReviewers
SUBCOMMANDS: list[Type[Subcommand]] = [
SetupGit,
UpdateReviewers,
ExecRyujinxTasks,
]
__all__ = SUBCOMMANDS