MCPcopy Index your code
hub / github.com/deepnote/deepnote / OutputFormat

Function OutputFormat

packages/convert/src/bin.ts:11–16  ·  view source on GitHub ↗

cleye flag parser: validates `--outputFormat` against the shared source-notebook format set (from .deepnote).

(value: string)

Source from the content-addressed store, hash-verified

9
10/** cleye flag parser: validates `--outputFormat` against the shared source-notebook format set (from .deepnote). */
11function OutputFormat(value: string): SourceNotebookFormat {
12 if (!isSourceNotebookFormat(value)) {
13 throw new Error(`Invalid --outputFormat "${value}". Expected one of: ${SOURCE_NOTEBOOK_FORMATS.join(', ')}.`)
14 }
15 return value
16}
17
18async function main() {
19 const argv = cli({

Callers

nothing calls this directly

Calls 1

isSourceNotebookFormatFunction · 0.85

Tested by

no test coverage detected