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

Function require_single_input

src/cli/main.rs:492–500  ·  view source on GitHub ↗
(args: &Args)

Source from the content-addressed store, hash-verified

490 };
491 let text = relative.to_string_lossy().replace('\\', "/");
492 let vpath = VPath::parse(&text)
493 .map_err(|err| CliError::Usage(format!("invalid workspace path: {err}")))?;
494 Ok((NativeFs::open(root)?, vpath))
495}
496
497fn map_session_error(err: full_stack::session::SessionEngineError) -> CliError {
498 match err {
499 full_stack::session::SessionEngineError::Build(full_stack::build::BuildError::Compile(
500 err,
501 )) => CliError::Compile(err.to_string()),
502 full_stack::session::SessionEngineError::Build(err) => CliError::Assemble(err.to_string()),
503 full_stack::session::SessionEngineError::Io(err) => CliError::Io(err),

Callers 3

cmd_hll_to_irFunction · 0.85
cmd_hll_to_asmFunction · 0.85
cmd_runFunction · 0.85

Calls 1

require_any_inputFunction · 0.85

Tested by

no test coverage detected