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 .map_err(|err| CliError::Usage(format!("invalid workspace path: {err}")))?;
491 Ok((NativeFs::open(root)?, vpath))
492}
493
494fn map_session_error(err: full_stack::session::SessionEngineError) -> CliError {
495 match err {
496 full_stack::session::SessionEngineError::Build(full_stack::build::BuildError::Compile(
497 err,
498 )) => CliError::Compile(err.to_string()),
499 full_stack::session::SessionEngineError::Build(err) => CliError::Assemble(err.to_string()),
500 full_stack::session::SessionEngineError::Io(err) => CliError::Io(err),
501 other => CliError::Assemble(other.to_string()),
502 }
503}

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