Skip to main content

Module catalog

Module catalog 

Source
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§

CheckReport
What catalog check found: 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 source into project/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/parts and dir/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/parts and dir/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. source adds the source column used by catalog list; catalog itself leaves it off.
value
The catalog as a JSON value: {id, kind, name, description, pins, attrs}.