(command)
| 66 | } |
| 67 | |
| 68 | function whereCommandLookup(command) { |
| 69 | const result = spawnSync("where.exe", [command], { encoding: "utf8" }); |
| 70 | if (result.status !== 0 || !result.stdout) { |
| 71 | return null; |
| 72 | } |
| 73 | return result.stdout.split(/\r?\n/).find(Boolean)?.trim() || null; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Signal the whole spawned service tree when possible. |
nothing calls this directly
no outgoing calls
no test coverage detected