MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / write_catalog

Function write_catalog

xtask/src/extension_catalog.rs:367–373  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

365}
366
367fn write_catalog(text: &str) -> Result<()> {
368 let path = Path::new(CATALOG_PATH);
369 if let Some(parent) = path.parent() {
370 fs::create_dir_all(parent).with_context(|| format!("create {}", parent.display()))?;
371 }
372 fs::write(path, format!("{text}\n")).with_context(|| format!("write {}", path.display()))
373}
374
375fn write_build_plan_files(catalog: &ExtensionCatalog) -> Result<()> {
376 let texts = build_plan_texts(catalog)?;

Callers 1

extensionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected