(store: string)
| 139 | |
| 140 | /** Create a new store directory. */ |
| 141 | export function createStore(store: string): void { |
| 142 | validateStoreName(store) |
| 143 | const storeDir = getStoreDir(store) |
| 144 | if (existsSync(storeDir)) { |
| 145 | throw new Error(`Store "${store}" already exists`) |
| 146 | } |
| 147 | mkdirSync(storeDir, { recursive: true }) |
| 148 | } |
| 149 | |
| 150 | /** Archive a store by renaming it to <store>.archived */ |
| 151 | export function archiveStore(store: string): void { |
no test coverage detected