diff --git a/docs/404.html b/docs/404.html index a633761..afb1b52 100644 --- a/docs/404.html +++ b/docs/404.html @@ -237,8 +237,8 @@
To convert output to json, use the --tojson (or -j) flag. This is supported by all commands.
Each matching yaml node will be converted to json and printed out on a separate line.
Given a sample.yaml file of:
@@ -457,7 +469,7 @@ bab: {"c":5} -To read in json, just pass in a json file instead of yaml, it will just work :)
e.g given a json file
{"a":"Easy! as one two three","b":{"c":2,"d":[3,4]}}
diff --git a/docs/create/index.html b/docs/create/index.html
index 7114b53..550fc9c 100644
--- a/docs/create/index.html
+++ b/docs/create/index.html
@@ -241,8 +241,8 @@
-
- Read
+
+ Path Expressions
@@ -253,8 +253,20 @@
-
- Path Expressions
+
+ Value Parsing
+
+
+
+
+
+
+
+
+
+
+
+ Read
@@ -430,7 +442,7 @@
Yaml files can be created using the 'new' command. This works in the same way as the write command, but you don't pass in an existing Yaml file. Currently this does not support creating multiple documents in a single yaml file.
See docs for path expression
-Creating a simple yaml file¶
+Creating a simple yaml file¶
yq n b.c cat
@@ -439,7 +451,7 @@
c: cat
-Create scripts follow the same format as the update scripts.
Given a script create_instructions.yaml of:
- command: update
diff --git a/docs/delete/index.html b/docs/delete/index.html
index 42b4d97..87a60ee 100644
--- a/docs/delete/index.html
+++ b/docs/delete/index.html
@@ -94,7 +94,7 @@
-
+
Skip to content
@@ -241,8 +241,8 @@
-
- Read
+
+ Path Expressions
@@ -253,8 +253,20 @@
-
- Path Expressions
+
+ Value Parsing
+
+
+
+
+
+
+
+
+
+
+
+ Read
@@ -311,6 +323,13 @@
+ -
+
+ Deleting from a simple document
+
+
+
+
-
From STDIN
@@ -319,25 +338,38 @@
-
-
- Deleting nodes in-place
+
+ Deleting in-place
-
-
- Multiple Documents - delete from single document
+
+ Multiple Documents
+
+
+
+
+
@@ -404,6 +436,13 @@
+ -
+
+ Deleting from a simple document
+
+
+
+
-
From STDIN
@@ -412,25 +451,38 @@
-
-
- Deleting nodes in-place
+
+ Deleting in-place
-
-
- Multiple Documents - delete from single document
+
+ Multiple Documents
+
+
+
+
+
@@ -458,12 +510,7 @@
The delete command will delete all the matching nodes for the path expression in the given yaml input.
See docs for path expression for more details.
-From STDIN¶
-Use "-" (without quotes) inplace of a file name if you wish to pipe in input from STDIN.
-
cat sample.yaml | yq d - b.c
-
-
-Deleting nodes in-place¶
+Deleting from a simple document¶
Given a sample.yaml file of:
b:
c: 2
@@ -471,11 +518,26 @@
then
+yq d sample.yaml b.c
+
+
+will output
+b:
+ apples: green
+
+
+From STDIN¶
+Use "-" (without quotes) in-place of a file name if you wish to pipe in input from STDIN.
+cat sample.yaml | yq d - b.c
+
+
+Deleting in-place¶
yq d -i sample.yaml b.c
will update the sample.yaml file so that the 'c' node is deleted
-Multiple Documents - delete from single document¶
+Multiple Documents¶
+Delete from single document¶
Given a sample.yaml file of:
something: else
field: leaveMe
@@ -497,7 +559,7 @@ b:
c: 2
-Multiple Documents - delete from all documents¶
+Delete from all documents¶
Given a sample.yaml file of:
something: else
field: deleteMe
@@ -517,8 +579,6 @@ field: deleteMeToo
b:
c: 2
-
-Note that '*' is in quotes to avoid being interpreted by your shell.
diff --git a/docs/index.html b/docs/index.html
index 3528e93..af5bfef 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -279,8 +279,8 @@
-
- Read
+
+ Path Expressions
@@ -291,8 +291,20 @@
-
- Path Expressions
+
+ Value Parsing
+
+
+
+
+
+
+
+
+
+
+
+ Read
@@ -459,13 +471,13 @@ sudo apt install yq -y