Add support for Lua input (#1810)

This commit is contained in:
Kim Alvefur
2023-10-03 16:00:51 +11:00
committed by GitHub
parent ee900ec997
commit 5fa41624c9
8 changed files with 301 additions and 2 deletions
+2
View File
@@ -130,6 +130,8 @@ func configureDecoder(evaluateTogether bool) (yqlib.Decoder, error) {
func createDecoder(format yqlib.InputFormat, evaluateTogether bool) (yqlib.Decoder, error) {
switch format {
case yqlib.LuaInputFormat:
return yqlib.NewLuaDecoder(yqlib.ConfiguredLuaPreferences), nil
case yqlib.XMLInputFormat:
return yqlib.NewXMLDecoder(yqlib.ConfiguredXMLPreferences), nil
case yqlib.PropertiesInputFormat: