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

Function assertMarkdown

apps/desktop/src/cli/commands/open.ts:43–47  ·  view source on GitHub ↗
(abs: string)

Source from the content-addressed store, hash-verified

41}
42
43function assertMarkdown(abs: string): void {
44 if (!isMarkdownFilePath(abs)) {
45 throw new Error(`zn open only supports markdown files (.md, .markdown): ${abs}`)
46 }
47}
48
49export async function cmdOpen(vault: string, args: ParsedArgs): Promise<void> {
50 if (args.positionals.length === 0) {

Callers 1

cmdOpenFunction · 0.85

Calls 1

isMarkdownFilePathFunction · 0.85

Tested by

no test coverage detected