diff --git a/docs/404.html b/docs/404.html index d9d1d71..38e09cf 100644 --- a/docs/404.html +++ b/docs/404.html @@ -19,6 +19,10 @@ + + + + @@ -28,7 +32,7 @@ - + @@ -36,36 +40,56 @@ - + + + - + -
Given a sample.yaml file of:
something: else --- @@ -494,6 +542,29 @@ b:
will output the value of '2'.
Reading all documents will return the result as an array. This can be converted to json using the '-j' flag if desired.
name: Fred +age: 22 +--- +name: Stella +age: 23 +--- +name: Android +age: 232 +
then
yq r -d'*' sample.yaml name +
will output:
- Fred +- Stella +- Android +
You can give an index to access a specific element: e.g.: given a sample file of