MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / source_stem

Function source_stem

src/cli/main.rs:481–488  ·  view source on GitHub ↗
(path: &str, default: &str)

Source from the content-addressed store, hash-verified

479 })?;
480 let file_name = canonical.file_name().ok_or_else(|| {
481 CliError::Usage(format!("`{input}` does not name a regular input file"))
482 })?;
483 (parent.to_path_buf(), PathBuf::from(file_name))
484 }
485 } else {
486 (cwd, PathBuf::from(input))
487 };
488 let text = relative.to_string_lossy().replace('\\', "/");
489 let vpath = VPath::parse(&text)
490 .map_err(|err| CliError::Usage(format!("invalid workspace path: {err}")))?;
491 Ok((NativeFs::open(root)?, vpath))

Callers 5

cmd_linkFunction · 0.85
cmd_hll_to_irFunction · 0.85
cmd_hll_to_asmFunction · 0.85
assemble_from_hll_fileFunction · 0.85
assemble_from_s_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected