(state: State)
| 600 | } |
| 601 | |
| 602 | function emitWrite(state: State): void { |
| 603 | const file = path.join(process.cwd(), "src", "demo-format.ts") |
| 604 | const ref = make(state, "write", { |
| 605 | filePath: file, |
| 606 | content: "export const demo = 42\n", |
| 607 | }) |
| 608 | doneTool(state, ref, { |
| 609 | title: "write", |
| 610 | output: "", |
| 611 | metadata: {}, |
| 612 | }) |
| 613 | } |
| 614 | |
| 615 | function emitEdit(state: State): void { |
| 616 | const file = path.join(process.cwd(), "src", "demo-format.ts") |