MCPcopy Create free account
hub / github.com/GCWing/BitFun / parse

Function parse

src/apps/cli/src/ui/theme.rs:762–766  ·  view source on GitHub ↗
(id: &'static str, raw: &'static str)

Source from the content-addressed store, hash-verified

760
761static BUILTIN_OPENCODE_THEMES: Lazy<HashMap<&'static str, OpencodeThemeJson>> = Lazy::new(|| {
762 fn parse(id: &'static str, raw: &'static str) -> (&'static str, OpencodeThemeJson) {
763 let json = serde_json::from_str::<OpencodeThemeJson>(raw)
764 .unwrap_or_else(|e| panic!("Failed to parse built-in theme {}: {}", id, e));
765 (id, json)
766 }
767
768 HashMap::from([
769 parse(

Callers 15

run_cliFunction · 0.85
theme.rsFile · 0.85
parsePartialJsonFunction · 0.85
map_miniapp_port_errorFunction · 0.85
map_host_dispatch_errorFunction · 0.85
map_storage_errorFunction · 0.85
map_builtin_io_errorFunction · 0.85
assemble_reportMethod · 0.85
compute_days_coveredFunction · 0.85
decode_data_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected