MCPcopy
hub / github.com/freshframework/fresh / format

Function format

packages/update/src/update.ts:26–31  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

24}
25
26async function format(filePath: string) {
27 const command = new Deno.Command(Deno.execPath(), {
28 args: ["fmt", filePath],
29 });
30 await command.output();
31}
32
33async function writeFormatted(filePath: string, content: string) {
34 await Deno.writeTextFile(filePath, content);

Callers 3

GETFunction · 0.85
writeFormattedFunction · 0.85
updateFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected