mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 08:35:42 +00:00
309 B
309 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,
};
};