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