MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / parse_service_run_process_line

Function parse_service_run_process_line

packages/server/src/main.rs:1657–1667  ·  view source on GitHub ↗
(line: &str)

Source from the content-addressed store, hash-verified

1655}
1656
1657fn parse_service_run_process_line(line: &str) -> Option<ServiceRunProcess> {
1658 let (pgid, command) = take_ps_field(line)?;
1659 if !command.contains(" service run ") || !command.contains(" --metadata-path ") {
1660 return None;
1661 }
1662 let metadata_path = command_arg_after(command, "--metadata-path")?;
1663 Some(ServiceRunProcess {
1664 pgid: pgid.parse().ok()?,
1665 metadata_path: PathBuf::from(metadata_path),
1666 })
1667}
1668
1669fn cleanup_orphaned_workspace_services_for_root(project_root: Option<&Path>) {
1670 match cleanup_orphaned_workspace_services(project_root) {

Callers

nothing calls this directly

Calls 3

take_ps_fieldFunction · 0.85
command_arg_afterFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected