diff --git a/.cards/cli.md b/.cards/cli.md index cba3d71..a3549f3 100644 --- a/.cards/cli.md +++ b/.cards/cli.md @@ -68,6 +68,8 @@ ocas render --pipe/-p [options] | `--pipe`, `-p` | Read from stdin (`put`/`hash`: raw JSON; `render`: envelope) | | `--schema ` | Schema filter for var commands | | `--tag ` | Tag/label operations (repeatable) | +| `--render`, `-r` | Render output inline (equivalent to piping to `ocas render -p`) | +| `--inline ` | Inline text content for `template set` | | `--format tree` | Tree display for `walk` | ## Type Aliases diff --git a/.cards/render-system.md b/.cards/render-system.md index 1c00b09..e66dcbd 100644 --- a/.cards/render-system.md +++ b/.cards/render-system.md @@ -63,4 +63,5 @@ At each level, `resolution *= decay`. When resolution drops below epsilon, refer - **`ocas render `** — render a stored node by hash, expanding ocas_ref references - **`ocas render -p`** — read a `{ type, value }` envelope from stdin and render it +- **`ocas -r`** — inline render shortcut; any command with `-r` / `--render` automatically pipes its envelope output through the renderer, equivalent to `| ocas render -p` - **`renderDirect(type, value, store, options)`** — in-memory render without requiring the data to be stored (used internally for CLI output) diff --git a/.cards/variable.md b/.cards/variable.md index a5a88dd..548b204 100644 --- a/.cards/variable.md +++ b/.cards/variable.md @@ -25,7 +25,7 @@ type Variable = { }; ``` -The primary key is `(name, schema)` — the same name can point to nodes of different types. +The primary key is `(name, schema)` — the same name can point to nodes of different types. When using `var set`, the schema is automatically inferred from the node the hash points to, so you don't need to specify it explicitly. ## Operations