Skip to content

yknz/matter-edit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matter Edit

edit Jekyll-style YAML front matter with values of passed parameters

Install

pip install matter-edit@git+https://github.com/yknz/matter-edit.git

Usage

sample.txt

---
author: hoge
thumbnail: thumbnail.png
---
Hello, world!

Show front matter value

> python3 -m matteredit show sample.txt --param thumbnail
thumbnail.png

Update front matter value(s)

> 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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages