MCPcopy
hub / github.com/coder/mux / writePlanFile

Function writePlanFile

src/node/services/workspaceService.test.ts:94–103  ·  view source on GitHub ↗
(
  root: string,
  projectName: string,
  workspaceName: string
)

Source from the content-addressed store, hash-verified

92}
93
94async function writePlanFile(
95 root: string,
96 projectName: string,
97 workspaceName: string
98): Promise<string> {
99 const planFile = getPlanFilePath(workspaceName, projectName, root);
100 await fsPromises.mkdir(path.dirname(planFile), { recursive: true });
101 await fsPromises.writeFile(planFile, "# Plan\n");
102 return planFile;
103}
104
105function createDeferred<T>() {
106 let resolve!: (value: T | PromiseLike<T>) => void;

Callers 1

Calls 2

getPlanFilePathFunction · 0.90
writeFileMethod · 0.65

Tested by

no test coverage detected