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

bin+lib tigerturtle

Safely parse and evaluate toml files as bash variables

3 releases

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

#755 in Configuration

Download history 261/week @ 2024-09-09 81/week @ 2024-09-16 15/week @ 2024-09-23 41/week @ 2024-09-30 158/week @ 2024-10-14 8/week @ 2024-10-21

224 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
~41K SLoC