(
pattern: string,
search: string,
replacement: string,
options?: StateReplaceInFilesOptions
)
| 232 | } |
| 233 | |
| 234 | async replaceInFiles( |
| 235 | pattern: string, |
| 236 | search: string, |
| 237 | replacement: string, |
| 238 | options?: StateReplaceInFilesOptions |
| 239 | ): Promise<StateReplaceInFilesResult> { |
| 240 | const paths = await this.getFilePaths(pattern); |
| 241 | return collectFileReplaceResults( |
| 242 | paths, |
| 243 | this.readFile.bind(this), |
| 244 | this.writeFile.bind(this), |
| 245 | this.deleteFile.bind(this), |
| 246 | search, |
| 247 | replacement, |
| 248 | options |
| 249 | ); |
| 250 | } |
| 251 | |
| 252 | async rm(path: string, options?: StateRmOptions): Promise<void> { |
| 253 | await this.fs.rm(path, options as RmOptions | undefined); |
nothing calls this directly
no test coverage detected