(store: string, key: string)
| 261 | |
| 262 | /** Delete an entry from a store. Returns true if it existed. */ |
| 263 | export function deleteEntry(store: string, key: string): boolean { |
| 264 | validateStoreName(store) |
| 265 | validateKey(key) |
| 266 | const entryPath = getEntryPath(store, key) |
| 267 | if (!existsSync(entryPath)) return false |
| 268 | rmSync(entryPath) |
| 269 | return true |
| 270 | } |
| 271 | |
| 272 | /** List all entry keys in a store (without .md extension). */ |
| 273 | export function listEntries(store: string): string[] { |
no test coverage detected