(stdout: string, key: "Registered" | "Running")
| 102 | }; |
| 103 | |
| 104 | const statusValue = (stdout: string, key: "Registered" | "Running"): boolean => |
| 105 | new RegExp(`^${key}:\\s+yes(?:\\s|$)`, "im").test(stdout); |
| 106 | |
| 107 | export const supervisedServiceStatus = async (): Promise<SupervisedServiceStatus> => { |
| 108 | if (!executorAvailable()) return { supported: false, registered: false, running: false }; |
no outgoing calls
no test coverage detected