MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / statusValue

Function statusValue

apps/desktop/src/main/service.ts:104–105  ·  view source on GitHub ↗
(stdout: string, key: "Registered" | "Running")

Source from the content-addressed store, hash-verified

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

Callers 1

supervisedServiceStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected