-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from jonathangreen/feature/sort-overrides
Override sort configuration per key in configuration
- Loading branch information
Showing
6 changed files
with
423 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This is a TOML document. Boom. | ||
|
||
title = "TOML Example" | ||
|
||
[clients] | ||
data = [["gamma", "delta"], [1, 2]] # just an update to make sure parsers support it | ||
# Line breaks are OK when inside arrays | ||
hosts = [ | ||
"alpha", | ||
"omega" | ||
] | ||
|
||
[database] | ||
connection_max = 5000 | ||
enabled = true # Comment after a boolean | ||
ports = [8001, 8001, 8002] | ||
server = "192.168.1.1" | ||
|
||
[owner] | ||
bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." | ||
dob = 1979-05-27T07:32:00Z # First class dates? Why not? | ||
name = "Tom Preston-Werner" | ||
organization = "GitHub" | ||
|
||
[[products]] | ||
name = "Hammer" | ||
sku = 738594937 | ||
|
||
[[products]] | ||
color = "gray" | ||
name = "Nail" | ||
sku = 284758393 | ||
|
||
[servers] | ||
|
||
# You can indent as you please. Tabs or spaces. TOML don't care. | ||
[servers.alpha] | ||
dc = "eqdc10" | ||
ip = "10.0.0.1" | ||
|
||
[servers.beta] | ||
ip = "10.0.0.2" | ||
dc = "eqdc10" | ||
country = "中国" # This should be parsed as UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.