Go to file
2024-07-15 13:15:19 +02:00
src update 2024-07-15 13:15:19 +02:00
.gitignore init 2023-11-04 08:22:18 +01:00
Cargo.lock update 2024-07-15 13:15:19 +02:00
Cargo.toml init 2023-11-04 08:22:18 +01:00
README.md refactor 2023-11-06 09:58:08 +01:00


Patch the frontmatter of markdown files


Usage: mdpatch [OPTIONS] <markdown>

  <markdown>  Markdown File

  -p, --patch <PATCH>       Apply JSON Patch file. If set to '-' read from stdin
      --merge <FILE>        Merge Markdown frontmatter. If set to '-' read from stdin
  -a, --add                 Only patch add operations
  -m, --modify              Only patch modify operations
  -d, --delete              Only patch delete operations
  -v, --verbose             Print out what changes will be made to the document
  -n, --dryrun              Dont modify the input file. Only print what would be done
  -o, --output <OUTPUT>     Write patched file to output path. Dont modify the input file directly. If set to '-' output to stdout
      --notest              Ignore tests in JSON Patch files
  -x, --exclude <JSONPATH>  Exclude json path from patch
  -k, --keys <JSONPATH>     Only include the specified json paths in patch