Skip to main content

steps_to_yaml

Function steps_to_yaml 

Source
pub fn steps_to_yaml(steps: &[Step]) -> String
Expand description

Serialize steps to the canonical on-disk dayscript form — a flow: document of - <op>: { <params> } entries (§14.1), byte-compatible with the file day-cli’s parse_flow reads. Each Step serializes to its internal-op-tag map ({op: tap, id: inc, …}); this lifts the op out to become the entry key and drops null-valued optional params, then serde_norway renders the whole {flow: […]} document as YAML.

Day API ↩ Guides· daybrite.dev