mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 22:44:50 +08:00
Added colors to json output #1208
This commit is contained in:
@@ -31,7 +31,7 @@ func pickSequence(original *yaml.Node, indices *yaml.Node) (*yaml.Node, error) {
|
||||
|
||||
filteredContent := make([]*yaml.Node, 0)
|
||||
for index := 0; index < len(indices.Content); index = index + 1 {
|
||||
_, indexInArray, err := parseInt(indices.Content[index].Value)
|
||||
indexInArray, err := parseInt(indices.Content[index].Value)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("cannot index array with %v", indices.Content[index].Value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user