This commit is contained in:
Mike Farah
2023-09-26 14:50:18 +10:00
parent 4a36926788
commit b06ab987b1
6 changed files with 26 additions and 7 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ myMap:
cat: meow
dog: bark
thing: hamster
hamster: squeek
hamster: squeak
```
then
```bash
@@ -22,7 +22,7 @@ yq '.myMap |= pick(["hamster", "cat", "goat"])' sample.yml
will output
```yaml
myMap:
hamster: squeek
hamster: squeak
cat: meow
```