mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 07:08:06 +00:00
748 B
748 B
Load
The load operators allows you to load in content from another file.
Note that you can use string operators like +
and sub
to modify the value in the yaml file to a path that exists in your system.
You can load files of the following supported types:
Format | Load Operator |
---|---|
Yaml | load |
XML | load_xml |
Properties | load_props |
Plain String | load_str |
Base64 | load_base64 |
Samples files for tests:
yaml
../../examples/thing.yml
:
a: apple is included
b: cool
xml
small.xml
:
<this>is some xml</this>
properties
small.properties
:
this.is = a properties file
base64
base64.txt
:
bXkgc2VjcmV0IGNoaWxsaSByZWNpcGUgaXMuLi4u