mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
hcl - sorted decoding
This commit is contained in:
@@ -67,6 +67,11 @@ var TomlFormat = &Format{"toml", []string{},
|
||||
func() Decoder { return NewTomlDecoder() },
|
||||
}
|
||||
|
||||
var HclFormat = &Format{"hcl", []string{"h", "hcl"},
|
||||
nil,
|
||||
func() Decoder { return NewHclDecoder() },
|
||||
}
|
||||
|
||||
var ShellVariablesFormat = &Format{"shell", []string{"s", "sh"},
|
||||
func() Encoder { return NewShellVariablesEncoder() },
|
||||
nil,
|
||||
@@ -93,6 +98,7 @@ var Formats = []*Format{
|
||||
UriFormat,
|
||||
ShFormat,
|
||||
TomlFormat,
|
||||
HclFormat,
|
||||
ShellVariablesFormat,
|
||||
LuaFormat,
|
||||
INIFormat,
|
||||
|
||||
Reference in New Issue
Block a user