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

Function render

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

Project a canonical Intent node to a rendered string for the given target.

(node: &CanonicalNode, target: Target)

Source from the content-addressed store, hash-verified

20
21/// Project a canonical Intent node to a rendered string for the given target.
22pub fn render(node: &CanonicalNode, target: Target) -> String {
23 match target {
24 Target::Cli => render_cli(node),
25 }
26}
27
28/// Project a canonical Memory node to a rendered string. Kept as a separate
29/// entry (rather than a `Target::Memory` variant) so each `render*` stays typed

Calls 1

render_cliFunction · 0.85