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

Function markdownPathsFromArgv

apps/desktop/src/main/file-open.ts:65–75  ·  view source on GitHub ↗
(argv: readonly string[])

Source from the content-addressed store, hash-verified

63 * `zennotes:` deep links handled elsewhere.
64 */
65export function markdownPathsFromArgv(argv: readonly string[]): string[] {
66 const out: string[] = []
67 for (let i = 1; i < argv.length; i++) {
68 const arg = argv[i]
69 if (!arg || arg.startsWith('-')) continue
70 if (arg.includes('://')) continue
71 if (!isMarkdownFilePath(arg)) continue
72 out.push(arg)
73 }
74 return out
75}

Callers 2

file-open.test.tsFile · 0.90

Calls 1

isMarkdownFilePathFunction · 0.85

Tested by

no test coverage detected