MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / status_to_string

Function status_to_string

crates/opencode-storage/src/repository.rs:364–371  ·  view source on GitHub ↗
(status: &SessionStatus)

Source from the content-addressed store, hash-verified

362}
363
364fn status_to_string(status: &SessionStatus) -> &'static str {
365 match status {
366 SessionStatus::Active => "active",
367 SessionStatus::Completed => "completed",
368 SessionStatus::Archived => "archived",
369 SessionStatus::Compacting => "compacting",
370 }
371}
372
373fn string_to_status(s: &str) -> SessionStatus {
374 match s {

Callers 2

createMethod · 0.85
updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected