MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / maestro_command_name

Function maestro_command_name

packages/server/src/main/maestro.rs:268–278  ·  view source on GitHub ↗
(command: &YamlValue)

Source from the content-addressed store, hash-verified

266}
267
268fn maestro_command_name(command: &YamlValue) -> String {
269 if let Some(name) = command.as_str() {
270 return name.to_owned();
271 }
272 command
273 .as_mapping()
274 .and_then(|mapping| mapping.keys().next())
275 .and_then(YamlValue::as_str)
276 .unwrap_or("unknown")
277 .to_owned()
278}
279
280fn maestro_bundle_id(value: &YamlValue) -> anyhow::Result<String> {
281 yaml_string_or_field(value, "appId")

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected