Skip to content

Commit 0cdd8ff

Browse files
committed
Updated documentation to use better quotes
1 parent b9e188e commit 0cdd8ff

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ You can pass any number of patches to be applied, they use the following syntax
1616

1717
Example:
1818
```bash
19-
yaml-patch -f test.yml 'spec.replicas=2'
19+
yaml-patch -f test.yml "spec.replicas=2"
2020
```
2121

2222
### Patch a value inside a single list item:
2323
`<field>.[<position]>.<subfield>=<value>`
2424

2525
Example:
2626
```bash
27-
yaml-patch -f test.yml 'spec.template.containers.[0].image="mycontainer:latest"'
27+
yaml-patch -f test.yml "spec.template.containers.[0].image='mycontainer:latest'"
2828
```
2929

3030
### Patch a value inside all list items:
3131
`<field>.[].<subfield>=<value>`
3232

3333
Example:
3434
```bash
35-
yaml-patch -f test.yml 'spec.template.containers.[].image="mycontainer:latest"'
35+
yaml-patch -f test.yml "spec.template.containers.[].image='mycontainer:latest'"
3636
```
3737

3838
## As a Python library

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ line-length = 120
33

44
[tool.poetry]
55
name = "yaml-patch"
6-
version = "0.2.0"
6+
version = "0.2.1"
77
description = "Patch yaml strings"
88
readme = "README.md"
99
authors = ["Diogo de Campos <campos.ddc@gmail.com>"]

yaml_patch/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222
Patch a single value:
2323
<field>.<subfield>=<value>
2424
Example:
25-
yaml-patch -f test.yml 'spec.replicas=2'
25+
yaml-patch -f test.yml "spec.replicas=2"
2626
2727
\b
2828
Patch a value inside a single list item:
2929
<field>.[<position]>.<subfield>=<value>
3030
Example:
31-
yaml-patch -f test.yml 'spec.template.containers.[0].image="mycontainer:latest"'
31+
yaml-patch -f test.yml "spec.template.containers.[0].image='mycontainer:latest'"
3232
3333
\b
3434
Patch a value inside all list items:
3535
<field>.[].<subfield>=<value>
3636
Example:
37-
yaml-patch -f test.yml 'spec.template.containers.[].image="mycontainer:latest"'
37+
yaml-patch -f test.yml "spec.template.containers.[].image='mycontainer:latest'"
3838
""",
3939
)
4040
@click.option(

0 commit comments

Comments
 (0)