(cwd, filenames)
| 129 | } |
| 130 | |
| 131 | async formatCommand(cwd, filenames) { |
| 132 | let files = [] |
| 133 | if (filenames && filenames.length) files = await this.getFiles(cwd, filenames) |
| 134 | else files = await this.sfs.getFusedFilesInFolder(this.resolvePath(cwd), ".scroll") |
| 135 | // .concat(fileSystem.getFusedFilesInFolder(folder, ".parsers")) // todo: should format parser files too. |
| 136 | for (let file of files) { |
| 137 | this.formatFile(file.scrollProgram) |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // Formatting is currently defined as formatting the entire original source file |
| 142 | // using the last parser present. |
nothing calls this directly
no test coverage detected