mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
The CLI reference is now 43 pages, one a verb, each with its forms, where it runs and what each of its 164 flags does, under docs/manual/reference/cli. The forms and flags are generated from `raea help --json`; the prose and the flag descriptions are written by hand, kept by the generator, and checked: a new flag without a description fails. The SDK reference is 28 pages, one an import path, under docs/manual/reference/sdk: every export with its doc, its signature, a component's props, a class's members, its Bevy type and the parity ports and examples that use it, generated by the TypeScript compiler, with a hand-written introduction and a type-checked example on each page. Where the SDK mirrors a Bevy type without a comment of its own, Bevy's own doc is shown, marked as Bevy's (tools/manual-ref/bevy-docs.json). Doc comments added to the SDK exports that had none. tools/manual-ref.sh gen|check runs both generators.
1.2 KiB
1.2 KiB
title, summary, order, sources
| title | summary | order | sources | |
|---|---|---|---|---|
| raea run | Run a TypeScript program on the engine, headless, and print what it prints. | 7 |
|
raea run bundles a TypeScript file and runs it on the engine's own V8, with no window and no composition. If the
file's default export is a function, it's called. What the program prints is the answer; a throw ends the run with
exit code 1. It's how checks such as a room's checkLayout run, and it reaches the engine's native calls (solids,
ECS worlds) the way a composition does.
raea run checks/layout.ts
raea run bake.ts --timeout 600
Usage
raea run SCRIPT.ts (a TypeScript program on the engine, headless: its default export is called, what it prints is the answer; a check like a room's checkLayout; also: --timeout S)
Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.
Flags
| Flag | Takes | What it does |
|---|---|---|
--timeout |
VALUE |
Stop the program after this many seconds (120 by default). |