hagenburger / pimd

PIMD – Processing Instructions for Markdown
https://hagenburger.github.io/pimd-docs/
MIT License
20 stars 5 forks source link

Command-line interface #29

Open hagenburger opened 6 years ago

hagenburger commented 6 years ago

New feature

Call PIMD from the command line. This should be a separate NPM package.

Specification

Input by user

pimd
# Hello world

End by pressing CMD + D. The output gets printed to the terminal.

Convert files

pimd convert input.md output.html

Loading plugins

pimd convert x.md x.html --use @pimd/id-plugin --use @pimd/preview-plugin 

Short version:

pimd convert x.md x.html -u@pimd/id-plugin -u@pimd/preview-plugin 

Config

Tbd.

Output version

All should work:

pimd version
pimd --version
pimd -v

Dependencies

Yargs or Commander could be used as a base.


This needs a review first and checked against the future (processing projects instead of single files)