(filePath, text, { marker } = {})
| 17 | } |
| 18 | |
| 19 | function savePatchText(filePath, text, { marker } = {}) { |
| 20 | const next = marker ? ensureMarker(String(text ?? ""), marker) : String(text ?? ""); |
| 21 | writeText(filePath, next); |
| 22 | return next; |
| 23 | } |
| 24 | |
| 25 | function loadPatchJson(filePath) { |
| 26 | return readJson(assertFileExists(filePath)); |
no test coverage detected