irix: The Deploy-Engine Console Script#
Console script irix, with four subcommands:
irix targets– list every registered target’s name, family, and per-mode filenames.irix generate [TARGET...]– render targets to disk (default:out/, both modes).irix check [TARGET...]– render in memory and diff againstout/on disk (default:out/, override with--out); this is the freshness gate CI runs, so a staleout/fails the build rather than shipping quietly out of sync withirix/data/andirix/data/anchors/.irix deploy [TARGET...]– delegate toirix.deploy.Deployer.
See Architecture: How Irix Is Put Together for how check’s render/diff loop fits the wider targets engine.
I Subcommand Handlers#
- irix.cli.cmd_targets(args: Namespace) int#
Print every registered target’s name, family, and per-mode filenames.
- Returns:
The number of targets listed.
- irix.cli.cmd_generate(args: Namespace) int#
Render the selected targets and modes to
--out(default:out/).- Returns:
The number of files written.
- irix.cli.cmd_check(args: Namespace) int#
Render the selected targets in memory and diff them against
out/on disk.Prints one
OK/DRIFTline per artifact, then oneORPHANline per on-disk file no registered target renders and that is not onUNRENDERED_ALLOWLIST. This is the freshness gate: CI runs it to catch a regenerable file that was hand-edited, a palette/anchor change that was never regenerated, or an unrendered file shipping in the wheel outside the gate entirely.- Returns:
0if every artifact matches and no orphan is found;1otherwise (this is also the process exit codemainpropagates).
- irix.cli.cmd_deploy(args: Namespace) int#
Delegate to
Deployerwith the selected targets.- Returns:
The number of artifacts deployed.
II Main#
- irix.cli.main(*vargs: str) None#
CLI entry point: dispatch to the selected subcommand and exit with its status.