(example: &str)
| 289 | } |
| 290 | |
| 291 | fn 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 | |
| 303 | async fn download_example( |
| 304 | name: &str, |