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

Function write_tree_children

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

Source from the content-addressed store, hash-verified

304}
305
306fn write_tree_children(out: &mut String, indent: &str, lines: &[String], has_following: bool) {
307 for (index, line) in lines.iter().enumerate() {
308 let branch = if index + 1 == lines.len() && !has_following {
309 "└──"
310 } else {
311 "├──"
312 };
313 out.push_str(&format!("{indent}{branch} {line}\n"));
314 }
315}
316
317fn node_details(graph: &Graph, node: &atomic_core::KgNode) -> Vec<String> {
318 let mut lines = vec![

Callers 1

render_treeFunction · 0.85

Calls 2

iterMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected