Expand description
litz catalog: the builtin catalog as JSON.
The command exists so a front end can render a component picker without
linking the runner. It reads the same Registry::builtin every other
command starts from and prints one record per entry. Nothing here
simulates, loads a diagram or touches the filesystem.
Structs§
- Check
Report - What
catalog checkfound: how many manifests it read and one message per manifest that did not parse. - Installed
- A bundle copied into a project’s catalog directory.
- Row
- One row of a human catalog table.
Functions§
- add
- Install
sourceintoproject/dir. - builtin_
json - The builtin catalog as a JSON array, one object per part or board.
- builtin_
table - The builtin catalog as a human table.
- check_
dir - Parse every manifest in
dir/partsanddir/boards. A missing directory is not an error; it simply holds no manifests. - json_
text - Serialise a registry. Every entry appears exactly once, ordered by id
because the registry is a
BTreeMap. - listing
- The builtin catalog plus
dir/partsanddir/boards, as rows. - new_
board - Write a starter board bundle to
project/dir/<id>/. - new_
part - Write a starter manifest to
project/dir/<id>.toml. - remove
- Remove an installed manifest and the wasm module it alone names.
- rows
- The registry’s entries as rows, ordered by id.
- table
- Render rows as a compact human table.
sourceadds the source column used bycatalog list;catalogitself leaves it off. - value
- The catalog as a JSON value:
{id, kind, name, description, pins, attrs}.