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

Function cmdTrash

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

Source from the content-addressed store, hash-verified

178}
179
180export async function cmdTrash(vault: string, args: ParsedArgs): Promise<void> {
181 const meta = await moveToTrash(vault, requirePath(args))
182 emitWritten(meta, args, 'Moved to trash')
183}
184
185export async function cmdRestore(vault: string, args: ParsedArgs): Promise<void> {
186 const meta = await restoreFromTrash(vault, requirePath(args))

Callers

nothing calls this directly

Calls 3

requirePathFunction · 0.85
emitWrittenFunction · 0.85
moveToTrashFunction · 0.50

Tested by

no test coverage detected