Project a canonical Intent node to a rendered string for the given target. The CLI view is one complete tree, including classification and review targets, so callers do not need to append their own metadata sections.
(node: &CanonicalNode, target: Target)
| 22 | /// The CLI view is one complete tree, including classification and review |
| 23 | /// targets, so callers do not need to append their own metadata sections. |
| 24 | pub fn render(node: &CanonicalNode, target: Target) -> String { |
| 25 | match target { |
| 26 | Target::Cli => render_cli(node), |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | /// Project a canonical Memory node to a rendered string. Kept as a separate |
| 31 | /// entry (rather than a `Target::Memory` variant) so each `render*` stays typed |