MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / example_name

Function example_name

crates/cargo-lambda-invoke/src/lib.rs:291–301  ·  view source on GitHub ↗
(example: &str)

Source from the content-addressed store, hash-verified

289}
290
291fn example_name(example: &str) -> String {
292 let mut name = if example.starts_with("example-") {
293 example.to_string()
294 } else {
295 format!("example-{example}")
296 };
297 if !name.ends_with(".json") {
298 name.push_str(".json");
299 }
300 name
301}
302
303async fn download_example(
304 name: &str,

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected