mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 02:57:52 -06:00
refactor: move six command run modes to packages
generate_db, generate_games_index, download, romset_recipes, validate_pr and list_platforms keep only main and build_parser: the database build goes to collection.run, the games index run to games.run, the pack info and its no-pack message to release.packinfo, the capture and build runs to romrecipes.runs, the file selection to resolve.reviewfiles. Tests reach the moved code through those packages.
This commit is contained in:
1 parent
cff440613d
commit
48d88da168
16 files changed
+257
-229
No files matched your search
@@ -18,11 +18,6 @@ from core.paths import PLATFORMS_DIR
|
||||
from model.registry import list_registered_platforms
|
||||
|
||||
|
||||
def list_platforms() -> list[str]:
|
||||
"""Every registered platform."""
|
||||
return list_registered_platforms(PLATFORMS_DIR)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(allow_abbrev=False, description="List available platforms")
|
||||
args = parser.parse_args()
|
||||
@@ -30,7 +25,7 @@ def main() -> None:
|
||||
|
||||
work_from_repo_root(args, parser, [])
|
||||
|
||||
platforms = list_platforms()
|
||||
platforms = list_registered_platforms(PLATFORMS_DIR)
|
||||
|
||||
if not platforms:
|
||||
print("No platform configs found", file=sys.stderr)
|
||||
|
||||
Reference in new issue
Block a user