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.
40 lines
1.7 KiB
Markdown
40 lines
1.7 KiB
Markdown
---
|
||
title: "raea controller"
|
||
summary: "Read and change the workspace's controllers: its settings and workflows, each a TypeScript file."
|
||
order: 25
|
||
sources: ["apps/workspace/src/controllers.rs"]
|
||
---
|
||
|
||
Controllers are a workspace's settings and workflows, each `controllers/ID.ts` exporting `controller({...})` from
|
||
`raea/brief`. A field is named by its path, `controller.group.field`. A project can override a field for itself,
|
||
and its value then wins, as git config's scopes do. Every change is a commit, by "you" unless `--by` names someone.
|
||
|
||
```sh
|
||
raea controller ls
|
||
raea controller get delivery.format.aspect-ratio
|
||
raea controller set delivery.format.aspect-ratio 9:16 --by agent
|
||
raea controller set delivery.format.aspect-ratio 16:9 --project # this project only
|
||
raea controller write controllers/delivery.ts
|
||
raea controller rm delivery
|
||
```
|
||
|
||
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
|
||
|
||
## Usage
|
||
|
||
```sh
|
||
raea controller ls [--json] | raea controller get PATH [--json] | raea controller set PATH VALUE [--project] [--by NAME] | raea controller write FILE.ts [--by NAME] | raea controller rm ID [--by NAME] (the workspace's controllers, controllers/ID.ts; PATH is controller.group.field; every change a commit)
|
||
```
|
||
|
||
Headless: it needs nothing running and opens no window. Takes up to 3 arguments besides its flags.
|
||
|
||
## Flags
|
||
|
||
| Flag | Takes | What it does |
|
||
| --- | --- | --- |
|
||
| `--by` | `NAME` | Who made the change, for its commit (`you` by default). An agent passes its own name. |
|
||
| `--json` | – | With `ls` and `get`: print JSON instead of text. |
|
||
| `--project` | – | With `set`: change the value for the current project only, in its `.raea/project`. |
|
||
|
||
<!-- generated:end -->
|