yq/pkg/yqlib/doc/usage/lua.md
Kim Alvefur 096497cdfc Generate Lua encoder documentation
Mostly just for the boilerplate
2023-08-05 17:08:38 +02:00

277 B

Basic example

Given a sample.yml file of:

hello: world
? look: non-string keys
: True
numbers: [123,456]

then

yq -o=lua '.' sample.yml

will output

return {["hello"]="world";[{["look"]="non-string keys";}]=true;["numbers"]={123,456,};};