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

Function todo_status_marker

atomic-cli/src/commands/session.rs:413–420  ·  view source on GitHub ↗
(status: &str)

Source from the content-addressed store, hash-verified

411}
412
413fn todo_status_marker(status: &str) -> (&'static str, Option<&str>) {
414 match status.to_ascii_lowercase().as_str() {
415 "completed" | "complete" | "done" => ("[x]", None),
416 "in_progress" | "in-progress" | "active" => ("[~]", None),
417 "pending" | "todo" | "not_started" | "not-started" => ("[ ]", None),
418 _ => ("[?]", Some(status)),
419 }
420}
421
422fn single_line(content: &str) -> String {
423 let normalized = content.split_whitespace().collect::<Vec<_>>().join(" ");

Callers 1

show_session_detailFunction · 0.85

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected