diff --git a/README.md b/README.md index 70b1e8e..720e6b0 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You can pass any number of patches to be applied, they use the following syntax Example: ```bash -yaml-patch -f test.yml 'spec.replicas=2' +yaml-patch -f test.yml "spec.replicas=2" ``` ### Patch a value inside a single list item: @@ -24,7 +24,7 @@ yaml-patch -f test.yml 'spec.replicas=2' Example: ```bash -yaml-patch -f test.yml 'spec.template.containers.[0].image="mycontainer:latest"' +yaml-patch -f test.yml "spec.template.containers.[0].image='mycontainer:latest'" ``` ### Patch a value inside all list items: @@ -32,7 +32,7 @@ yaml-patch -f test.yml 'spec.template.containers.[0].image="mycontainer:latest" Example: ```bash -yaml-patch -f test.yml 'spec.template.containers.[].image="mycontainer:latest"' +yaml-patch -f test.yml "spec.template.containers.[].image='mycontainer:latest'" ``` ## As a Python library diff --git a/pyproject.toml b/pyproject.toml index 137a1d2..44da3e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ line-length = 120 [tool.poetry] name = "yaml-patch" -version = "0.2.0" +version = "0.2.1" description = "Patch yaml strings" readme = "README.md" authors = ["Diogo de Campos "] diff --git a/yaml_patch/cli.py b/yaml_patch/cli.py index 8b74f3a..e2758df 100644 --- a/yaml_patch/cli.py +++ b/yaml_patch/cli.py @@ -22,19 +22,19 @@ Patch a single value: .= Example: - yaml-patch -f test.yml 'spec.replicas=2' + yaml-patch -f test.yml "spec.replicas=2" \b Patch a value inside a single list item: .[.= Example: - yaml-patch -f test.yml 'spec.template.containers.[0].image="mycontainer:latest"' + yaml-patch -f test.yml "spec.template.containers.[0].image='mycontainer:latest'" \b Patch a value inside all list items: .[].= Example: - yaml-patch -f test.yml 'spec.template.containers.[].image="mycontainer:latest"' + yaml-patch -f test.yml "spec.template.containers.[].image='mycontainer:latest'" """, ) @click.option(