cleye flag parser: validates `--outputFormat` against the shared source-notebook format set (from .deepnote).
(value: string)
| 9 | |
| 10 | /** cleye flag parser: validates `--outputFormat` against the shared source-notebook format set (from .deepnote). */ |
| 11 | function 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 | |
| 18 | async function main() { |
| 19 | const argv = cli({ |
nothing calls this directly
no test coverage detected