(vault: string, args: ParsedArgs)
| 151 | } |
| 152 | |
| 153 | export async function cmdRename(vault: string, args: ParsedArgs): Promise<void> { |
| 154 | const rel = requirePath(args) |
| 155 | const to = getString(args, 'to') |
| 156 | if (!to) throw new Error('zn rename requires --to <new title>.') |
| 157 | const meta = await renameNote(vault, rel, to) |
| 158 | emitWritten(meta, args, 'Renamed') |
| 159 | } |
| 160 | |
| 161 | export async function cmdMove(vault: string, args: ParsedArgs): Promise<void> { |
| 162 | const rel = requirePath(args) |
nothing calls this directly
no test coverage detected