(result: StoreCleanupResult)
| 148 | } |
| 149 | |
| 150 | function toCleanupOutput(result: StoreCleanupResult): StoreCleanupOutput { |
| 151 | return { |
| 152 | store: toStoreOutput(result.store), |
| 153 | registry: { |
| 154 | path: result.registryCommit.path, |
| 155 | removed: result.registryCommit.removed, |
| 156 | }, |
| 157 | files: { |
| 158 | deleted: result.files.deleted, |
| 159 | deleted_path: result.files.deletedPath ?? null, |
| 160 | left_on_disk: result.files.leftOnDisk ?? null, |
| 161 | }, |
| 162 | status: result.diagnostics, |
| 163 | }; |
| 164 | } |
| 165 | |
| 166 | function toListOutput(result: StoreListResult): StoreListOutput { |
| 167 | return { |
no test coverage detected