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

Function todo_status_marker

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

Source from the content-addressed store, hash-verified

467}
468
469fn todo_status_marker(status: &str) -> (&'static str, Option<&str>) {
470 match status.to_ascii_lowercase().as_str() {
471 "completed" | "complete" | "done" => ("[x]", None),
472 "in_progress" | "in-progress" | "active" => ("[~]", None),
473 "pending" | "todo" | "not_started" | "not-started" => ("[ ]", None),
474 _ => ("[?]", Some(status)),
475 }
476}
477
478fn single_line(content: &str) -> String {
479 let normalized = content.split_whitespace().collect::<Vec<_>>().join(" ");

Callers 1

render_session_detailFunction · 0.85

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected