-
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 #53 from jonathangreen/feature/sort-first
Add option to sort particular keys first in output
- Loading branch information
Showing
6 changed files
with
122 additions
and
8 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" | ||
|
||
[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] | ||
country = "中国" # This should be parsed as UTF-8 | ||
dc = "eqdc10" | ||
ip = "10.0.0.2" | ||
|
||
[[products]] | ||
name = "Hammer" | ||
sku = 738594937 | ||
|
||
[[products]] | ||
color = "gray" | ||
name = "Nail" | ||
sku = 284758393 | ||
|
||
[clients] | ||
data = [["delta", "gamma"], [1, 2]] # just an update to make sure parsers support it | ||
# Line breaks are OK when inside arrays | ||
hosts = [ | ||
"alpha", | ||
"omega" | ||
] | ||
|
||
[database] | ||
ports = [8001, 8001, 8002] | ||
connection_max = 5000 | ||
enabled = true # Comment after a boolean | ||
server = "192.168.1.1" | ||
|
||
[owner] | ||
name = "Tom Preston-Werner" | ||
dob = 1979-05-27T07:32:00Z # First class dates? Why not? | ||
bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." | ||
organization = "GitHub" |
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
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