Perform CRUD operations on TOML files.
- Style-preserving edits
- Supports indexing into arrays
- Write back to input file with
-i - "Shell-compatible" output à la
jqwith-r
$ echo -e '[project]\nname = "crudtoml"' | tee test.toml
[project]
name = "crudtoml"$ crudtoml test.toml create project dob 2023-05-23
[project]
name = "crudtoml"
dob = 2023-05-23$ crudtoml test.toml read project name
"crudtoml"$ crudtoml test.toml update project name '"crudini"'
[project]
name = "crudini"$ crudtoml test.toml delete project name
[project]