No description
This repository has been archived on 2026-04-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
JMARyA 5dd2dfec02
Some checks failed
ci/woodpecker/push/build/2 Pipeline failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build/1 Pipeline failed
deprecate in favour of jsaw
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 22:48:59 +02:00
.woodpecker update 2025-06-28 01:55:29 +02:00
src deprecate in favour of jsaw 2026-04-15 22:48:59 +02:00
.gitignore init 2023-11-04 08:22:18 +01:00
Cargo.lock chore(deps): update rust crate clap to v4.5.56 2026-01-29 16:47:37 +00:00
Cargo.toml update 2025-06-28 01:55:29 +02:00
flake.lock chore: nix flake 2025-11-30 22:23:29 +01:00
flake.nix chore: nix flake 2025-11-30 22:23:29 +01:00
PKGBUILD update 2025-06-28 01:55:29 +02:00
README.md deprecate in favour of jsaw 2026-04-15 22:48:59 +02:00
renovate.json Add renovate.json 2025-06-21 21:37:51 +00:00

mdpatch

Deprecated. mdpatch is no longer maintained. Use jsaw patch instead — it has full feature parity plus support for JSON, YAML, and TOML files, visual dry-run diffs, and atomic writes.

# mdpatch file.md --patch ops.json
jsaw patch file.md --patch ops.json

# mdpatch file.md --merge other.md
jsaw patch file.md --merge other.md

Patch the frontmatter of markdown files

Usage

Usage: mdpatch [OPTIONS] <markdown>

Arguments:
  <markdown>  Markdown File

Options:
  -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