(vault: string, args: ParsedArgs)
| 141 | } |
| 142 | |
| 143 | export async function cmdPrepend(vault: string, args: ParsedArgs): Promise<void> { |
| 144 | const rel = requirePath(args) |
| 145 | const body = await resolveBody(args) |
| 146 | if (body == null || body.trim() === '') { |
| 147 | throw new Error('zn prepend requires --body, a positional body, or piped stdin.') |
| 148 | } |
| 149 | const meta = await prependToNote(vault, rel, body) |
| 150 | emitWritten(meta, args) |
| 151 | } |
| 152 | |
| 153 | export async function cmdRename(vault: string, args: ParsedArgs): Promise<void> { |
| 154 | const rel = requirePath(args) |
nothing calls this directly
no test coverage detected