Refactor plugin registry into separate files per plugin

This commit is contained in:
pleb
2026-07-05 14:24:58 -07:00
parent 1b4087c5b5
commit 1858f76766
62 changed files with 730 additions and 1008 deletions
+6 -6
View File
@@ -106,7 +106,7 @@ def build_parser() -> argparse.ArgumentParser:
parents=[_common_parent()],
)
installed.add_argument("--instance", required=True)
installed.add_argument("--registry", default="registry/plugins.toml")
installed.add_argument("--registry", default="registry/plugins")
installed.add_argument("--lockfile")
installed.add_argument("--json", action="store_true", help="Print full JSON output")
@@ -116,7 +116,7 @@ def build_parser() -> argparse.ArgumentParser:
parents=[_common_parent()],
)
check.add_argument("--instance", required=True)
check.add_argument("--registry", default="registry/plugins.toml")
check.add_argument("--registry", default="registry/plugins")
check.add_argument("--lockfile")
check.add_argument("--json", action="store_true", help="Print full JSON check output")
@@ -126,7 +126,7 @@ def build_parser() -> argparse.ArgumentParser:
parents=[_common_parent()],
)
bootstrap.add_argument("--instance", required=True)
bootstrap.add_argument("--registry", default="registry/plugins.toml")
bootstrap.add_argument("--registry", default="registry/plugins")
bootstrap.add_argument("--lockfile")
bootstrap.add_argument("--proton", help="Path to Proton executable (Linux/Proton installs)")
bootstrap.add_argument("--native", action="store_true", help="Run IPA.exe -n natively instead of through Proton")
@@ -146,7 +146,7 @@ def build_parser() -> argparse.ArgumentParser:
parents=[_common_parent()],
)
updates.add_argument("--instance", required=True)
updates.add_argument("--registry", default="registry/plugins.toml")
updates.add_argument("--registry", default="registry/plugins")
updates.add_argument("--lockfile")
updates.add_argument("--plugin", action="append", help="Check only this locked plugin id; repeatable")
updates.add_argument("--include-prerelease", action="store_true", help="Include prerelease GitHub releases")
@@ -158,7 +158,7 @@ def build_parser() -> argparse.ArgumentParser:
parents=[_common_parent()],
)
plan.add_argument("--instance", required=True)
plan.add_argument("--registry", default="registry/plugins.toml")
plan.add_argument("--registry", default="registry/plugins")
plan.add_argument("--lockfile")
plan.add_argument("--plugin", "--update", action="append", help="Plan only this locked plugin id; repeatable")
@@ -193,7 +193,7 @@ def build_parser() -> argparse.ArgumentParser:
parents=[_common_parent()],
)
enable.add_argument("--instance", required=True)
enable.add_argument("--registry", default="registry/plugins.toml")
enable.add_argument("--registry", default="registry/plugins")
enable.add_argument("--lockfile")
enable.add_argument("plugin")