Expand description
Render and write drep.toml.
The on-disk shape is fixed by Phase 5b: every entry has its documented
position, comments explain why a field exists (or doesn’t), and the file
parses cleanly through crate::config::load once the referenced env
vars are set. init and config agreeing about the file is the whole
reason [[llm]] lands in this phase rather than in 5c.
Escaping happens here rather than at a higher level, so render is the
single place a caller’s value could fail to escape. See escape for what
TOML actually requires - it is more than the two characters this originally
handled.
Structs§
- Choice
- One provider the user chose, ready to render.
Functions§
- already_
exists - The refusal to overwrite an existing config.
- render_
chain - Render the whole
drep.toml, comments included, for a failover chain. - write
- Write
drep.tomlunderroot.