mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
38 lines
895 B
Go
38 lines
895 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/mikefarah/yq/v3/pkg/yqlib"
|
|
"github.com/mikefarah/yq/v3/pkg/yqlib/treeops"
|
|
logging "gopkg.in/op/go-logging.v1"
|
|
)
|
|
|
|
var customTag = ""
|
|
var printMode = "v"
|
|
var printLength = false
|
|
var unwrapScalar = true
|
|
var customStyle = ""
|
|
var anchorName = ""
|
|
var makeAlias = false
|
|
var stripComments = false
|
|
var collectIntoArray = false
|
|
var writeInplace = false
|
|
var writeScript = ""
|
|
var sourceYamlFile = ""
|
|
var outputToJSON = false
|
|
var exitStatus = false
|
|
var prettyPrint = false
|
|
var explodeAnchors = false
|
|
var colorsEnabled = false
|
|
var defaultValue = ""
|
|
var indent = 2
|
|
var overwriteFlag = false
|
|
var autoCreateFlag = true
|
|
var arrayMergeStrategyFlag = "update"
|
|
var commentsMergeStrategyFlag = "setWhenBlank"
|
|
var verbose = false
|
|
var version = false
|
|
var docIndex = "0"
|
|
var log = logging.MustGetLogger("yq")
|
|
var lib = treeops.NewYqTreeLib()
|
|
var valueParser = yqlib.NewValueParser()
|