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

Function single_line

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

Source from the content-addressed store, hash-verified

420}
421
422fn single_line(content: &str) -> String {
423 let normalized = content.split_whitespace().collect::<Vec<_>>().join(" ");
424 if normalized.is_empty() {
425 "(untitled todo)".to_string()
426 } else {
427 normalized
428 }
429}
430
431#[cfg(test)]
432mod tests {

Callers 1

show_session_detailFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected