Lukas Kalbertodt
d1a62e47eb
Add map default values (e.g. default = { "foo": 33 })
...
This commit also adds a bunch of tests testing maps in several
situations.
2022-10-21 18:13:59 +02:00
Lukas Kalbertodt
093957b515
Add array default value to formatting test example 1
2022-10-21 17:22:03 +02:00
Lukas Kalbertodt
9b9610a6ac
Add JSON5 support
2022-10-21 11:52:53 +02:00
Lukas Kalbertodt
6a9ccd4e22
Do major refactor of format code
...
This gets rid of a lot of duplicated logic that was previously
copy&pasted. This commit alos:
- Makes it easier to implement new formats
- Gets rid of a few bugs
- Makes the system more flexible (more options)
- Adds a lot of additional tests
2022-10-19 17:12:32 +02:00
Lukas Kalbertodt
4f5c458150
Add YAML formatting tests
2022-10-19 10:12:25 +02:00
Lukas Kalbertodt
dd55a17b14
Show env key in config template
2022-10-18 16:07:51 +02:00
Lukas Kalbertodt
56f8ff24d5
Improve toml::format regarding space above nested objects
2022-04-07 17:19:38 +02:00
Lukas Kalbertodt
8db8fcafc4
Add two toml::format tests
2022-04-07 14:00:56 +02:00