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

Function single_line

atomic-cli/src/commands/session.rs:478–485  ·  view source on GitHub ↗
(content: &str)

Source from the content-addressed store, hash-verified

476}
477
478fn single_line(content: &str) -> String {
479 let normalized = content.split_whitespace().collect::<Vec<_>>().join(" ");
480 if normalized.is_empty() {
481 "(untitled todo)".to_string()
482 } else {
483 normalized
484 }
485}
486
487#[cfg(test)]
488mod tests {

Callers 1

render_session_detailFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected