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

Function parse_priority

crates/opencode-session/src/todo.rs:264–271  ·  view source on GitHub ↗
(priority: &str)

Source from the content-addressed store, hash-verified

262}
263
264pub fn parse_priority(priority: &str) -> TodoPriority {
265 match priority.to_lowercase().as_str() {
266 "high" => TodoPriority::High,
267 "medium" => TodoPriority::Medium,
268 "low" => TodoPriority::Low,
269 _ => TodoPriority::Medium,
270 }
271}

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected