games status: both stores' game services in one read-only report (CLI, MCP games_status, desktop read method); --json status output stays pure JSON
This commit is contained in:
parent
a4c31e096b
commit
26f0723641
7 changed files with 23 additions and 4 deletions
|
|
@ -86,3 +86,12 @@ export function gameServicesFindings(s: GameServicesStatus): VFinding[] {
|
|||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
/** `storebound games status [--json]`: both stores' game services in one read-only report (desktop card, MCP). */
|
||||
export async function run(ctx: import('./lib/ctx').Ctx): Promise<void> {
|
||||
const s = await gameServicesStatus(ctx.loaded);
|
||||
if (ctx.args.has('json')) { console.log(JSON.stringify(s, null, 2)); return; }
|
||||
const { formatFindings } = await import('./lib/validate-rules');
|
||||
console.log(formatFindings(gameServicesFindings(s)));
|
||||
for (const l of s.links) console.log(`${l.label}: ${l.url}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue