INNER CODE UNIT · Python
render_reftoml
toyota-connected/ivi-homescreen · scripts/gen_config_reference.py:336
def render_reftoml(rows):
out = [
"# config.toml — REFERENCE. Lists every key the parser reads, grouped by",
"# table, with type / default / valid values / applies-to. This file is a",
"# reference, NOT runnable as-is: AGL window/activation keys, ivi surface_id",
"# and the DRM knobs are mutually exclusive by shell/backend. For runnable",
"# configs see the other files in this directory. Generated by",
"# scripts/gen_config_reference.py — do not edit by hand.",
"",
]
for table in TABLE_ORDER:
if not rows[table]:
continue
out.append(table)
for name, typ, default, values, applies, desc, _ in rows[table]:
out.append(f" # {desc}")
out.append(f" # type={typ} default={default} values={values} applies={applies}")
out.append(f" {name} =")