pimd
pimd copied to clipboard
Command-line interface
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)