MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / render

Function render

atomic-canonical/src/render.rs:24–28  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
24pub 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

Calls 1

render_cliFunction · 0.85