(line: &str)
| 1655 | } |
| 1656 | |
| 1657 | fn 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 | |
| 1669 | fn cleanup_orphaned_workspace_services_for_root(project_root: Option<&Path>) { |
| 1670 | match cleanup_orphaned_workspace_services(project_root) { |
nothing calls this directly
no test coverage detected