edit Jekyll-style YAML front matter with values of passed parameters
pip install matter-edit@git+https://github.com/yknz/matter-edit.git
sample.txt
---
author: hoge
thumbnail: thumbnail.png
---
Hello, world!
> python3 -m matteredit show sample.txt --param thumbnail
thumbnail.png
> python3 -m matteredit update sample.txt --params author=fuga
sample.txt (value updated)
---
author: fuga
thumbnail: thumbnail.png
---
Hello, world!
> python3 -m matteredit update sample.txt --params author=piyo thumbnail=thumbnail.jpg
sample.txt (value updated)
---
author: piyo
thumbnail: thumbnail.jpg
---
Hello, world!