Skip to content

Commit 1508f1f

Browse files
suridgemikefarah
authored andcommitted
Update docs and tests for --properties-separator flag
1 parent 8bf425b commit 1508f1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/yqlib/doc/usage/properties.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ person.food[0] = pizza
7171
```
7272

7373
## Encode properties - custom separator
74-
Use the --properties-customer-separator flag to specify your own key/value separator.
74+
Use the --properties-separator flag to specify your own key/value separator.
7575

7676
Given a sample.yml file of:
7777
```yaml
@@ -89,7 +89,7 @@ emptyMap: []
8989
```
9090
then
9191
```bash
92-
yq -o=props --properties-customer-separator=" :@ " sample.yml
92+
yq -o=props --properties-separator=" :@ " sample.yml
9393
```
9494
will output
9595
```properties

pkg/yqlib/properties_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ var propertyScenarios = []formatScenario{
171171
},
172172
{
173173
description: "Encode properties - custom separator",
174-
subdescription: "Use the --properties-customer-separator flag to specify your own key/value separator.",
174+
subdescription: "Use the --properties-separator flag to specify your own key/value separator.",
175175
input: samplePropertiesYaml,
176176
expected: expectedPropertiesUnwrappedCustomSeparator,
177177
scenarioType: "encode-custom-separator",
@@ -324,7 +324,7 @@ func documentUnwrappedEncodePropertyScenario(w *bufio.Writer, s formatScenario)
324324
prefs.UseArrayBrackets = true
325325
} else if s.scenarioType == "encode-custom-separator" {
326326
prefs.KeyValueSeparator = " :@ "
327-
useCustomSeparatorFlag = ` --properties-customer-separator=" :@ "`
327+
useCustomSeparatorFlag = ` --properties-separator=" :@ "`
328328
}
329329

330330
if expression != "" {

0 commit comments

Comments
 (0)