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

Function cmdMove

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

Source from the content-addressed store, hash-verified

159}
160
161export async function cmdMove(vault: string, args: ParsedArgs): Promise<void> {
162 const rel = requirePath(args)
163 const folder = parseFolderFlag(getString(args, 'folder'))
164 if (!folder) throw new Error('zn move requires --folder <inbox|quick|archive|trash>.')
165 const sub = getString(args, 'subpath') ?? ''
166 const meta = await moveNote(vault, rel, folder, sub)
167 emitWritten(meta, args, 'Moved')
168}
169
170export async function cmdArchive(vault: string, args: ParsedArgs): Promise<void> {
171 const meta = await archiveNote(vault, requirePath(args))

Callers

nothing calls this directly

Calls 5

requirePathFunction · 0.85
parseFolderFlagFunction · 0.85
getStringFunction · 0.85
emitWrittenFunction · 0.85
moveNoteFunction · 0.50

Tested by

no test coverage detected