MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / from_str

Method from_str

server/src/ops/content.rs:83–89  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

81
82impl GrepScope {
83 pub fn from_str(s: &str) -> Option<Self> {
84 match s.to_lowercase().as_str() {
85 "all" => Some(GrepScope::All),
86 "code" => Some(GrepScope::Code),
87 _ => None,
88 }
89 }
90}
91
92/// Grep with default scope (matches anywhere). Convenience wrapper.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected