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

Function parse_mode

src/cli/main.rs:190–198  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

188 output,
189 mode,
190 max_steps,
191 emit_object,
192 })
193}
194
195fn parse_mode(s: &str) -> Result<TargetMode, CliError> {
196 match s {
197 "hosted" => Ok(TargetMode::Hosted),
198 "freestanding" => Ok(TargetMode::Freestanding),
199 "kernel" => Ok(TargetMode::Kernel),
200 other => Err(CliError::Usage(format!(
201 "unknown mode `{other}`; expected `hosted`, `freestanding`, or `kernel`"

Callers 1

parse_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected