yq/cmd/constant.go

38 lines
895 B
Go
Raw Normal View History

package cmd
import (
"github.com/mikefarah/yq/v3/pkg/yqlib"
2020-10-13 01:51:37 +00:00
"github.com/mikefarah/yq/v3/pkg/yqlib/treeops"
logging "gopkg.in/op/go-logging.v1"
)
var customTag = ""
var printMode = "v"
2020-02-28 00:30:16 +00:00
var printLength = false
2020-04-13 01:03:18 +00:00
var unwrapScalar = true
var customStyle = ""
var anchorName = ""
var makeAlias = false
2020-04-14 04:48:45 +00:00
var stripComments = false
2020-02-28 01:18:27 +00:00
var collectIntoArray = false
var writeInplace = false
var writeScript = ""
2020-02-08 03:01:44 +00:00
var sourceYamlFile = ""
var outputToJSON = false
2020-06-10 06:54:08 +00:00
var exitStatus = false
2020-01-31 05:35:01 +00:00
var prettyPrint = false
2020-02-05 03:10:59 +00:00
var explodeAnchors = false
2020-02-27 13:29:13 +00:00
var colorsEnabled = false
var defaultValue = ""
2020-02-03 05:52:12 +00:00
var indent = 2
var overwriteFlag = false
var autoCreateFlag = true
var arrayMergeStrategyFlag = "update"
2020-07-17 05:51:03 +00:00
var commentsMergeStrategyFlag = "setWhenBlank"
var verbose = false
var version = false
var docIndex = "0"
var log = logging.MustGetLogger("yq")
2020-10-13 01:51:37 +00:00
var lib = treeops.NewYqTreeLib()
var valueParser = yqlib.NewValueParser()