Simplify pick example
Old pick example included input array in command line, making `input` confusing and redundant.
This commit is contained in:
1 parent
6b5a18f036
commit
7f547827e4
4 files changed
+5
-5
No files matched your search
@@ -1065,7 +1065,7 @@ sections:
|
||||
input: '{"a": 1, "b": {"c": 2, "d": 3}, "e": 4}'
|
||||
output: ['{"a":1,"b":{"c":2},"x":null}']
|
||||
|
||||
- program: '[1,2,3,4] | pick(.[2], .[0], .[0])'
|
||||
- program: 'pick(.[2], .[0], .[0])'
|
||||
input: '[1,2,3,4]'
|
||||
output: ['[1,null,3]']
|
||||
|
||||
|
||||
@@ -1062,7 +1062,7 @@ sections:
|
||||
input: '{"a": 1, "b": {"c": 2, "d": 3}, "e": 4}'
|
||||
output: ['{"a":1,"b":{"c":2},"x":null}']
|
||||
|
||||
- program: "[1,2,3,4] | pick(.[2], .[0], .[0])"
|
||||
- program: "pick(.[2], .[0], .[0])"
|
||||
input: "[1,2,3,4]"
|
||||
output: ["[1,null,3]"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user