Skip to content

Commit

Permalink
Add diff and Bash syntax highlighting to README.md (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Loison authored Nov 10, 2023
1 parent dc98433 commit f6f8e4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ Diff ::= ( '@' '[' ( 'JSON String' | 'JSON Number' | 'Empty JSON Object' )* ']'
## Cookbook

### Use git diff to produce a structural diff:
```
```diff
git difftool -yx jd @ -- foo.json
@ ["foo"]
- "bar"
+ "baz"
```

### See what changes in a Kubernetes Deployment:
```
```bash
kubectl get deployment example -oyaml > a.yaml
kubectl edit deployment example
# change cpu resource from 100m to 200m
Expand Down Expand Up @@ -178,7 +178,7 @@ output:
+ 3
```
apply these change to another deployment:
```
```bash
# edit file "patch" to contain only the hunk updating cpu request
kubectl patch deployment example2 --type json --patch "$(jd -t jd2patch ~/patch)"
```

0 comments on commit f6f8e4b

Please sign in to comment.