MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / cmdRestore

Function cmdRestore

apps/desktop/src/cli/commands/notes.ts:185–188  ·  view source on GitHub ↗
(vault: string, args: ParsedArgs)

Source from the content-addressed store, hash-verified

183}
184
185export async function cmdRestore(vault: string, args: ParsedArgs): Promise<void> {
186 const meta = await restoreFromTrash(vault, requirePath(args))
187 emitWritten(meta, args, 'Restored')
188}
189
190export async function cmdDelete(vault: string, args: ParsedArgs): Promise<void> {
191 const rel = requirePath(args)

Callers

nothing calls this directly

Calls 3

requirePathFunction · 0.85
emitWrittenFunction · 0.85
restoreFromTrashFunction · 0.50

Tested by

no test coverage detected