(vault: string, args: ParsedArgs)
| 121 | } |
| 122 | |
| 123 | export async function cmdWrite(vault: string, args: ParsedArgs): Promise<void> { |
| 124 | const rel = requirePath(args) |
| 125 | const body = await resolveBody(args) |
| 126 | if (body == null) { |
| 127 | throw new Error('zn write requires --body, a positional body, or piped stdin.') |
| 128 | } |
| 129 | const meta = await writeNote(vault, rel, body) |
| 130 | emitWritten(meta, args) |
| 131 | } |
| 132 | |
| 133 | export async function cmdAppend(vault: string, args: ParsedArgs): Promise<void> { |
| 134 | const rel = requirePath(args) |
nothing calls this directly
no test coverage detected