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

Function write_tree_children

atomic-cli/src/commands/intent/graph.rs:325–334  ·  view source on GitHub ↗
(out: &mut String, indent: &str, lines: &[String], has_following: bool)

Source from the content-addressed store, hash-verified

323}
324
325fn write_tree_children(out: &mut String, indent: &str, lines: &[String], has_following: bool) {
326 for (index, line) in lines.iter().enumerate() {
327 let branch = if index + 1 == lines.len() && !has_following {
328 "└──"
329 } else {
330 "├──"
331 };
332 out.push_str(&format!("{indent}{branch} {line}\n"));
333 }
334}
335
336fn node_details(graph: &Graph, node: &atomic_core::KgNode) -> Vec<String> {
337 let mut lines = vec![

Callers 1

render_treeFunction · 0.85

Calls 2

iterMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected