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

Function cmdDuplicate

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

Source from the content-addressed store, hash-verified

203}
204
205export async function cmdDuplicate(vault: string, args: ParsedArgs): Promise<void> {
206 const meta = await duplicateNote(vault, requirePath(args))
207 emitWritten(meta, args, 'Duplicated')
208}
209
210/* ---------- helpers -------------------------------------------------- */
211

Callers

nothing calls this directly

Calls 3

requirePathFunction · 0.85
emitWrittenFunction · 0.85
duplicateNoteFunction · 0.50

Tested by

no test coverage detected