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

Function make_pipeline

src/cli/main.rs:474–479  ·  view source on GitHub ↗
(mode: TargetMode, string_prefix: &str)

Source from the content-addressed store, hash-verified

472 let cwd = cwd.canonicalize()?;
473 if let Ok(relative) = canonical.strip_prefix(&cwd) {
474 (cwd, relative.to_path_buf())
475 } else {
476 let parent = canonical.parent().ok_or_else(|| {
477 CliError::Usage(format!("`{input}` has no parent workspace directory"))
478 })?;
479 let file_name = canonical.file_name().ok_or_else(|| {
480 CliError::Usage(format!("`{input}` does not name a regular input file"))
481 })?;
482 (parent.to_path_buf(), PathBuf::from(file_name))

Callers 5

cmd_linkFunction · 0.70
cmd_hll_to_irFunction · 0.70
cmd_hll_to_asmFunction · 0.70
assemble_from_s_fileFunction · 0.70
compile_stdlib_objectsFunction · 0.70

Calls 2

set_string_prefixMethod · 0.80
set_target_modeMethod · 0.45

Tested by

no test coverage detected