#parser #toml-parser #bash #toml-config #config-parser #toml #config-file

bin+lib tigerturtle

Safely parse and evaluate toml files as bash variables

3 releases

new 0.1.2 Oct 17, 2024
0.1.1 Sep 14, 2024
0.1.0 Sep 13, 2024

#26 in #toml-parser

Download history 328/week @ 2024-09-13 28/week @ 2024-09-20 35/week @ 2024-09-27 7/week @ 2024-10-04 108/week @ 2024-10-11

184 downloads per month

Unlicense

8KB
153 lines

tigerturtle lets you safely parse and evaluate toml files as bash variables.

Why?

I use bash scripts a lot. I like to load configurations. I dislike the idea of simply running eval $(cat some_file). This allows me to parse a TOML file and safely evaluate just the keys I want.

How?

Install using cargo install tigerturtle.

Run tigerturtle --generate >> some_script.sh for the most basic use case. Check out the example script to learn more.

I can break this

Feel free to report an issue.

Dependencies

~1.5–2.2MB
~43K SLoC