card 42: --headless flag #2

Merged
surma merged 2 commits from card-42-headless into main 2026-10-18 16:38:36 +01:00
Owner

Adds --headless (or SAUSAGE_HEADLESS=1): console end of input does not stop the world; it runs until SIGTERM/SIGINT (stops actors, exit 0) or the broker exit message (exit 75, the loop's restart code). Pass it through the loop with nix run .#loop -- --headless <world>.

Seed: the repo has no seed folder. I read it as how fresh worlds get their docs: cli/src/lib.rs embeds PROTOCOL.md and writes it into every world at startup, so the headless documentation reaches new worlds that way. No unit generation was added.

Adds `--headless` (or SAUSAGE_HEADLESS=1): console end of input does not stop the world; it runs until SIGTERM/SIGINT (stops actors, exit 0) or the broker exit message (exit 75, the loop's restart code). Pass it through the loop with `nix run .#loop -- --headless <world>`. Seed: the repo has no seed folder. I read it as how fresh worlds get their docs: cli/src/lib.rs embeds PROTOCOL.md and writes it into every world at startup, so the headless documentation reaches new worlds that way. No unit generation was added.
surma added 2 commits 2026-10-18 16:32:02 +01:00
surma merged commit a72e42a8c9 into main 2026-10-18 16:38:36 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: surma/sausage#2