MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / encodeLockInfo

Function encodeLockInfo

src/mcp/daemon-paths.ts:108–110  ·  view source on GitHub ↗
(info: DaemonLockInfo)

Source from the content-addressed store, hash-verified

106 * human readability — operators occasionally `cat` this when debugging.
107 */
108export function encodeLockInfo(info: DaemonLockInfo): string {
109 return JSON.stringify(info, null, 2) + '\n';
110}
111
112/**
113 * Parse a pidfile body. Tolerant of old-format pidfiles (plain decimal pid) so

Callers 3

startMethod · 0.90
tryAcquireDaemonLockFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected