mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 10:37:54 -06:00
refactor: join name lists through core.text
This commit is contained in:
1 parent
4b8e91bb6f
commit
a9d8e571c1
16 files changed
+54
-56
No files matched your search
@@ -6,6 +6,7 @@ import json
|
||||
import subprocess
|
||||
from collections.abc import Callable
|
||||
|
||||
from core.text import series
|
||||
from core.sizes import size_text
|
||||
from model.guides import install_command
|
||||
from model.platforms import load_platform_config
|
||||
@@ -55,7 +56,7 @@ def no_pack_paragraph(platforms_dir: str) -> list[str]:
|
||||
names = without_pack(platforms_dir)
|
||||
if not names:
|
||||
return []
|
||||
listed = ", ".join(names[:-1]) + f" and {names[-1]}" if len(names) > 1 else names[0]
|
||||
listed = series(names)
|
||||
return [
|
||||
("Only the most used setups have a pack, to keep the release small."
|
||||
f" For {listed}, use the command above."),
|
||||
|
||||
Reference in new issue
Block a user