MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / parse_status

Function parse_status

crates/opencode-session/src/todo.rs:254–262  ·  view source on GitHub ↗
(status: &str)

Source from the content-addressed store, hash-verified

252}
253
254pub fn parse_status(status: &str) -> TodoStatus {
255 match status.to_lowercase().as_str() {
256 "pending" => TodoStatus::Pending,
257 "in_progress" | "in progress" => TodoStatus::InProgress,
258 "completed" => TodoStatus::Completed,
259 "cancelled" => TodoStatus::Cancelled,
260 _ => TodoStatus::Pending,
261 }
262}
263
264pub fn parse_priority(priority: &str) -> TodoPriority {
265 match priority.to_lowercase().as_str() {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected