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

Function emitCreated

apps/desktop/src/cli/commands/notes.ts:220–227  ·  view source on GitHub ↗
(meta: NoteMeta, args: ParsedArgs)

Source from the content-addressed store, hash-verified

218}
219
220function emitCreated(meta: NoteMeta, args: ParsedArgs): void {
221 if (getBool(args, 'json')) {
222 emitJson(meta)
223 return
224 }
225 emitOk(`Created ${meta.path}`)
226 if (meta.excerpt) emitLine(` ${truncate(meta.excerpt, 80)}`)
227}
228
229function emitWritten(meta: NoteMeta, args: ParsedArgs, verb = 'Updated'): void {
230 if (getBool(args, 'json')) {

Callers 1

cmdCreateFunction · 0.85

Calls 5

getBoolFunction · 0.85
emitJsonFunction · 0.85
emitOkFunction · 0.85
emitLineFunction · 0.85
truncateFunction · 0.85

Tested by

no test coverage detected