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

Function sanitize_program_filename

src/app/mod.rs:1286–1303  ·  view source on GitHub ↗

Turn a program display name into a lowercase, filesystem-safe stem. Non-alphanumeric characters become underscores; empty results fall back to "program".

(name: &str)

Source from the content-addressed store, hash-verified

1284 self.last_build = Some(build.clone());
1285 self.terminal.push(
1286 ConsoleStream::Success,
1287 format!(
1288 "Linked {}, target {:?}.",
1289 diagnostics::tally(build.artifacts.units.len() as u64, "unit"),
1290 build.target
1291 ),
1292 );
1293 if let Some(dir) = &build.artifact_dir {
1294 self.terminal.push(
1295 ConsoleStream::Info,
1296 format!("Wrote .ir/.s/.elf artifacts to {}", dir.display()),
1297 );
1298 }
1299 }
1300
1301 fn start_hosted_live_session(
1302 &mut self,
1303 config: &RunConfig,
1304 build: &full_stack::session::BuildOutcome,
1305 now: f64,
1306 debug: bool,

Callers 2

build_boot_fs_imageMethod · 0.85
uiMethod · 0.85

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected