docs: knowledge cards — 8 core concept cards #15
@@ -68,6 +68,8 @@ ocas render --pipe/-p [options]
|
||||
| `--pipe`, `-p` | Read from stdin (`put`/`hash`: raw JSON; `render`: envelope) |
|
||||
| `--schema <hash>` | Schema filter for var commands |
|
||||
| `--tag <expr>` | Tag/label operations (repeatable) |
|
||||
| `--render`, `-r` | Render output inline (equivalent to piping to `ocas render -p`) |
|
||||
| `--inline <text>` | Inline text content for `template set` |
|
||||
| `--format tree` | Tree display for `walk` |
|
||||
|
||||
## Type Aliases
|
||||
|
||||
@@ -63,4 +63,5 @@ At each level, `resolution *= decay`. When resolution drops below epsilon, refer
|
||||
|
||||
- **`ocas render <hash>`** — render a stored node by hash, expanding ocas_ref references
|
||||
- **`ocas render -p`** — read a `{ type, value }` envelope from stdin and render it
|
||||
- **`ocas <any-command> -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)
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user