|
3 | 3 |     
|
4 | 4 |
|
5 | 5 |
|
6 |
| -a lightweight and portable command-line YAML, JSON and XML processor. `yq` uses [jq](https://github.com/stedolan/jq) like syntax but works with yaml files as well as json and xml. It doesn't yet support everything `jq` does - but it does support the most common operations and functions, and more is being added continuously. |
| 6 | +a lightweight and portable command-line YAML, JSON and XML processor. `yq` uses [jq](https://github.com/stedolan/jq) like syntax but works with yaml files as well as json, xml, properties, csv and tsv. It doesn't yet support everything `jq` does - but it does support the most common operations and functions, and more is being added continuously. |
7 | 7 |
|
8 | 8 | yq is written in go - so you can download a dependency free binary for your platform and you are good to go! If you prefer there are a variety of package managers that can be used as well as Docker and Podman, all listed below.
|
9 | 9 |
|
@@ -207,6 +207,14 @@ RUN apk add --no-cache tzdata
|
207 | 207 | USER yq
|
208 | 208 | ```
|
209 | 209 |
|
| 210 | +#### Podman with SELinux |
| 211 | + |
| 212 | +If you are using podman with SELinux, you will need to set the shared volume flag `:z` on the volume mount: |
| 213 | + |
| 214 | +``` |
| 215 | +-v "${PWD}":/workdir:z |
| 216 | +``` |
| 217 | + |
210 | 218 | ### GitHub Action
|
211 | 219 | ```
|
212 | 220 | - name: Set foobar to cool
|
@@ -290,10 +298,10 @@ Supported by @rmescandon (https://launchpad.net/~rmescandon/+archive/ubuntu/yq)
|
290 | 298 | - Keeps yaml formatting and comments when updating (though there are issues with whitespace)
|
291 | 299 | - [Decode/Encode base64 data](https://mikefarah.gitbook.io/yq/operators/encode-decode)
|
292 | 300 | - [Load content from other files](https://mikefarah.gitbook.io/yq/operators/load)
|
293 |
| -- [Convert to/from json](https://mikefarah.gitbook.io/yq/v/v4.x/usage/convert) |
| 301 | +- [Convert to/from json/ndjson](https://mikefarah.gitbook.io/yq/v/v4.x/usage/convert) |
294 | 302 | - [Convert to/from xml](https://mikefarah.gitbook.io/yq/v/v4.x/usage/xml)
|
295 | 303 | - [Convert to/from properties](https://mikefarah.gitbook.io/yq/v/v4.x/usage/properties)
|
296 |
| -- [Convert to csv/tsv](https://mikefarah.gitbook.io/yq/usage/csv-tsv) |
| 304 | +- [Convert to/from csv/tsv](https://mikefarah.gitbook.io/yq/usage/csv-tsv) |
297 | 305 | - [General shell completion scripts (bash/zsh/fish/powershell)](https://mikefarah.gitbook.io/yq/v/v4.x/commands/shell-completion)
|
298 | 306 | - [Reduce](https://mikefarah.gitbook.io/yq/operators/reduce) to merge multiple files or sum an array or other fancy things.
|
299 | 307 | - [Github Action](https://mikefarah.gitbook.io/yq/usage/github-action) to use in your automated pipeline (thanks @devorbitus)
|
|
0 commit comments