MCPcopy Index your code
hub / github.com/coder/mux / get

Method get

src/node/services/bashMonitorWakeStore.ts:201–210  ·  view source on GitHub ↗
(ownerWorkspaceId: string, id: string)

Source from the content-addressed store, hash-verified

199 }
200
201 async get(ownerWorkspaceId: string, id: string): Promise<BashMonitorWakeRecord | null> {
202 let raw: string;
203 try {
204 raw = await fsPromises.readFile(this.file(ownerWorkspaceId, id), "utf-8");
205 } catch (error) {
206 if (isErrnoWithCode(error, "ENOENT")) return null;
207 throw error;
208 }
209 return this.parse(raw);
210 }
211
212 async listPending(ownerWorkspaceId: string): Promise<BashMonitorWakeRecord[]> {
213 const dir = this.dir(ownerWorkspaceId);

Callers 3

enqueueOrMergePendingMethod · 0.95
transitionSnapshotMethod · 0.95
transitionMethod · 0.95

Calls 4

fileMethod · 0.95
parseMethod · 0.95
isErrnoWithCodeFunction · 0.90
readFileMethod · 0.65

Tested by

no test coverage detected