Skip to content

Add a CLI mode to the parser (cli.mjs) #3

Closed
@ovflowd

Description

@ovflowd

After completing #1, we aim to add a "JavaScript binary" that you can quickly call, following NPM's package.json documentation for bin.

This aims to provide functionality to:

  • Provide a glob for input (-i)
    • This can be a single API doc file, or a glob to all markdown files of a folder or subfolder (like doc/api/*.md
  • Provide an output folder path -o
    • This is not a glob but simple a directory to output generated contents
    • File names will match input file names
  • Provide an execution target mode (-t)
    • Initially it will only support mdx this can be a comma-separated value of one or more output formats we'll support in the future (like json, html, mdx)

This file should be stored within a bin/cli.mjs file

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions