mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Fix typos (#1798)
This commit is contained in:
parent
c750f1a48c
commit
05ad1dad90
@ -167,7 +167,7 @@ testLeadingSeparatorExtractFieldMultiDocWithComments() {
|
|||||||
---
|
---
|
||||||
# there
|
# there
|
||||||
a: test
|
a: test
|
||||||
# whereever
|
# wherever
|
||||||
---
|
---
|
||||||
# you are
|
# you are
|
||||||
a: test2
|
a: test2
|
@ -111,7 +111,7 @@ func (n *CandidateNode) createChildPath(path interface{}) []interface{} {
|
|||||||
return newPath
|
return newPath
|
||||||
}
|
}
|
||||||
|
|
||||||
//don't use append as they may actually modify the path of the orignal node!
|
//don't use append as they may actually modify the path of the original node!
|
||||||
newPath := make([]interface{}, len(n.Path)+1)
|
newPath := make([]interface{}, len(n.Path)+1)
|
||||||
copy(newPath, n.Path)
|
copy(newPath, n.Path)
|
||||||
newPath[len(n.Path)] = path
|
newPath[len(n.Path)] = path
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Encode/Decode/Roundtrip CSV and TSV files.
|
Encode/Decode/Roundtrip CSV and TSV files.
|
||||||
|
|
||||||
## Encode
|
## Encode
|
||||||
Currently supports arrays of homogenous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required:
|
Currently supports arrays of homogeneous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Bobo
|
- name: Bobo
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Encode/Decode/Roundtrip CSV and TSV files.
|
Encode/Decode/Roundtrip CSV and TSV files.
|
||||||
|
|
||||||
## Encode
|
## Encode
|
||||||
Currently supports arrays of homogenous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required:
|
Currently supports arrays of homogeneous flat objects, that is: no nesting and it assumes the _first_ object has all the keys required:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Bobo
|
- name: Bobo
|
||||||
|
@ -161,7 +161,7 @@ Oneshot
|
|||||||
opencollect
|
opencollect
|
||||||
opstack
|
opstack
|
||||||
orderedmap
|
orderedmap
|
||||||
orignal
|
original
|
||||||
osarch
|
osarch
|
||||||
overridign
|
overridign
|
||||||
pacman
|
pacman
|
||||||
@ -239,7 +239,7 @@ Warningf
|
|||||||
Wazowski
|
Wazowski
|
||||||
webi
|
webi
|
||||||
Webi
|
Webi
|
||||||
whereever
|
wherever
|
||||||
winget
|
winget
|
||||||
withdots
|
withdots
|
||||||
wizz
|
wizz
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
- Fixed sorting by date #1412
|
- Fixed sorting by date #1412
|
||||||
- Added check to ensure only maps can be encoded to XML #1408
|
- Added check to ensure only maps can be encoded to XML #1408
|
||||||
- Check merge alias is a map #1425
|
- Check merge alias is a map #1425
|
||||||
- Explicity setting unwrap flag works for json output #437, #1409
|
- Explicitly setting unwrap flag works for json output #437, #1409
|
||||||
- Bumped go version
|
- Bumped go version
|
||||||
|
|
||||||
|
|
||||||
|
@ -1306,7 +1306,7 @@ if command [ "$#" -ge 2 ]; then
|
|||||||
# Argument $1 is either the filename of tests or '--'; either way, skip it.
|
# Argument $1 is either the filename of tests or '--'; either way, skip it.
|
||||||
shift
|
shift
|
||||||
# Remaining arguments ($2 .. $#) are assumed to be test function names.
|
# Remaining arguments ($2 .. $#) are assumed to be test function names.
|
||||||
# Interate through all remaining args in "$@" in a POSIX (likely portable) way.
|
# Iterate through all remaining args in "$@" in a POSIX (likely portable) way.
|
||||||
# Helpful tip: https://unix.stackexchange.com/questions/314032/how-to-use-arguments-like-1-2-in-a-for-loop
|
# Helpful tip: https://unix.stackexchange.com/questions/314032/how-to-use-arguments-like-1-2-in-a-for-loop
|
||||||
for _shunit_arg_ do
|
for _shunit_arg_ do
|
||||||
suite_addTest "${_shunit_arg_}"
|
suite_addTest "${_shunit_arg_}"
|
||||||
|
Loading…
Reference in New Issue
Block a user