(vault: string, args: ParsedArgs)
| 131 | } |
| 132 | |
| 133 | export async function cmdAppend(vault: string, args: ParsedArgs): Promise<void> { |
| 134 | const rel = requirePath(args) |
| 135 | const body = await resolveBody(args) |
| 136 | if (body == null || body.trim() === '') { |
| 137 | throw new Error('zn append requires --body, a positional body, or piped stdin.') |
| 138 | } |
| 139 | const meta = await appendToNote(vault, rel, body) |
| 140 | emitWritten(meta, args) |
| 141 | } |
| 142 | |
| 143 | export async function cmdPrepend(vault: string, args: ParsedArgs): Promise<void> { |
| 144 | const rel = requirePath(args) |
nothing calls this directly
no test coverage detected