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

Function app_bundle_path_from_command

packages/server/src/performance.rs:646–656  ·  view source on GitHub ↗
(command: &str)

Source from the content-addressed store, hash-verified

644}
645
646fn app_bundle_path_from_command(command: &str) -> Option<String> {
647 let marker = if command.contains(".app/") {
648 ".app/"
649 } else {
650 ".appex/"
651 };
652 let command = command.trim();
653 let end = command.find(marker)? + marker.trim_end_matches('/').len();
654 let start = command[..end].find('/').unwrap_or(0);
655 Some(command[start..end].trim_matches('"').to_owned())
656}
657
658struct AppMetadata {
659 app_name: Option<String>,

Callers 1

performance_processFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected