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

Function split_theme_variant

crates/opencode-tui/src/app/app.rs:3765–3773  ·  view source on GitHub ↗
(theme_id: &str)

Source from the content-addressed store, hash-verified

3763}
3764
3765fn split_theme_variant(theme_id: &str) -> Option<(&str, &str)> {
3766 let (base, variant) = theme_id
3767 .rsplit_once('@')
3768 .or_else(|| theme_id.rsplit_once(':'))?;
3769 if base.is_empty() || !matches!(variant, "dark" | "light") {
3770 return None;
3771 }
3772 Some((base, variant))
3773}
3774
3775fn parse_model_ref_selection(
3776 model_ref: &str,

Callers 1

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected