Template generator
generate template
This update enhances the generate template command to produce a fully dynamic, schema-aware YAML configuration template.
1. Build placeholders for different data types.
2. Use schemas to build nested placeholders.
3. Walk through every board and processor, collect all commands and parameters.
4. Build the correct YAML structure with all those commands.
5. Delete any empty parameters
6. Save it to a file.
➤ Structure includes:
-
Schema-Driven Placeholders
Recursively inspects each parameter’s JSON schema (object, array, primitive) so nested maps and lists (e.g.dataFile: → type, path) are generated without any hard-coding. -
Per-Processor Sections
Produces one section per board-processor, listing placeholders for all supported commands. -
Clean Formatting
Uses Ruamel-YAML’sCommentedMap/CommentedSeqfor:- Predictable key ordering
Edited by Mehrnoosh Moallemi