mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-26 16:35:38 +00:00
Fixed docker file, fixed doco
This commit is contained in:
parent
8e1ce4ca70
commit
9674acf684
@ -22,4 +22,4 @@ LABEL version=${VERSION}
|
|||||||
|
|
||||||
WORKDIR /workdir
|
WORKDIR /workdir
|
||||||
|
|
||||||
ENTRYPOINT [/usr/bin/yq]
|
ENTRYPOINT /usr/bin/yq
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
var assignOperatorScenarios = []expressionScenario{
|
var assignOperatorScenarios = []expressionScenario{
|
||||||
{
|
{
|
||||||
description: "Update parent to be the child value",
|
description: "Update node to be the child value",
|
||||||
document: `{a: {b: {g: foof}}}`,
|
document: `{a: {b: {g: foof}}}`,
|
||||||
expression: `.a |= .b`,
|
expression: `.a |= .b`,
|
||||||
expected: []string{
|
expected: []string{
|
||||||
@ -14,7 +14,7 @@ var assignOperatorScenarios = []expressionScenario{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description: "Update to be the sibling value",
|
description: "Update node to be the sibling value",
|
||||||
document: `{a: {b: child}, b: sibling}`,
|
document: `{a: {b: child}, b: sibling}`,
|
||||||
expression: `.a = .b`,
|
expression: `.a = .b`,
|
||||||
expected: []string{
|
expected: []string{
|
||||||
|
Loading…
Reference in New Issue
Block a user