mirror of
https://github.com/mikefarah/yq.git
synced 2026-08-24 08:22:13 +08:00
Update docs and tests for --properties-separator flag
This commit is contained in:
committed by
Mike Farah
parent
8bf425b4d1
commit
1508f1fd5f
@@ -71,7 +71,7 @@ person.food[0] = pizza
|
||||
```
|
||||
|
||||
## Encode properties - custom separator
|
||||
Use the --properties-customer-separator flag to specify your own key/value separator.
|
||||
Use the --properties-separator flag to specify your own key/value separator.
|
||||
|
||||
Given a sample.yml file of:
|
||||
```yaml
|
||||
@@ -89,7 +89,7 @@ emptyMap: []
|
||||
```
|
||||
then
|
||||
```bash
|
||||
yq -o=props --properties-customer-separator=" :@ " sample.yml
|
||||
yq -o=props --properties-separator=" :@ " sample.yml
|
||||
```
|
||||
will output
|
||||
```properties
|
||||
|
||||
Reference in New Issue
Block a user