feat: add support for toml in addition to json
This commit is contained in:
parent
c3d51b1cc2
commit
e72c317bbb
22 changed files with 455 additions and 291 deletions
5
test_data/full.json
Normal file
5
test_data/full.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"String": "default string",
|
||||
"Invariant": "should not change",
|
||||
"Int": 1
|
||||
}
|
3
test_data/full.toml
Normal file
3
test_data/full.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
String = 'default string'
|
||||
Invariant = 'should not change'
|
||||
Int = 1
|
1
test_data/invalid.toml
Normal file
1
test_data/invalid.toml
Normal file
|
@ -0,0 +1 @@
|
|||
String: not toml
|
1
test_data/part1.json
Normal file
1
test_data/part1.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"String": "foo"}
|
1
test_data/part1.toml
Normal file
1
test_data/part1.toml
Normal file
|
@ -0,0 +1 @@
|
|||
String = "foo"
|
1
test_data/part2.json
Normal file
1
test_data/part2.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"Int": 42}
|
1
test_data/part2.toml
Normal file
1
test_data/part2.toml
Normal file
|
@ -0,0 +1 @@
|
|||
Int = 42
|
1
test_data/same1.json
Normal file
1
test_data/same1.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"String": "foo"}
|
1
test_data/same1.toml
Normal file
1
test_data/same1.toml
Normal file
|
@ -0,0 +1 @@
|
|||
String = "foo"
|
1
test_data/same2.json
Normal file
1
test_data/same2.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"String": "bar"}
|
1
test_data/same2.toml
Normal file
1
test_data/same2.toml
Normal file
|
@ -0,0 +1 @@
|
|||
String = "bar"
|
5
test_data/unknown.json
Normal file
5
test_data/unknown.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"String": "config string",
|
||||
"Int": 42,
|
||||
"Unknown": "foo"
|
||||
}
|
3
test_data/unknown.toml
Normal file
3
test_data/unknown.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
String = "config string"
|
||||
Int = 42
|
||||
Unknown = "foo"
|
2
test_data/valid.toml
Normal file
2
test_data/valid.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
string = "config string"
|
||||
int = 42
|
1
test_data/valid.unknown
Normal file
1
test_data/valid.unknown
Normal file
|
@ -0,0 +1 @@
|
|||
String: not json
|
Loading…
Add table
Add a link
Reference in a new issue