2020-01-13 09:11:56 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
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
|
2020-04-17 01:03:43 +00:00
|
|
|
var customStyle = ""
|
2020-06-11 03:57:13 +00:00
|
|
|
var anchorName = ""
|
|
|
|
var makeAlias = false
|
2020-01-13 09:11:56 +00:00
|
|
|
var writeInplace = false
|
|
|
|
var writeScript = ""
|
2020-02-08 03:01:44 +00:00
|
|
|
var sourceYamlFile = ""
|
2020-01-13 09:11:56 +00:00
|
|
|
var outputToJSON = false
|
2020-06-10 06:54:08 +00:00
|
|
|
var exitStatus = false
|
2020-02-05 03:10:59 +00:00
|
|
|
var explodeAnchors = false
|
2020-10-27 05:45:16 +00:00
|
|
|
var forceColor = false
|
|
|
|
var forceNoColor = false
|
2020-02-27 13:29:13 +00:00
|
|
|
var colorsEnabled = false
|
2020-02-02 23:13:48 +00:00
|
|
|
var defaultValue = ""
|
2020-02-03 05:52:12 +00:00
|
|
|
var indent = 2
|
2020-11-03 23:48:43 +00:00
|
|
|
var printDocSeparators = true
|
2020-01-13 09:11:56 +00:00
|
|
|
var overwriteFlag = false
|
|
|
|
var autoCreateFlag = true
|
2020-07-17 03:26:20 +00:00
|
|
|
var arrayMergeStrategyFlag = "update"
|
2020-07-17 05:51:03 +00:00
|
|
|
var commentsMergeStrategyFlag = "setWhenBlank"
|
2020-01-13 09:11:56 +00:00
|
|
|
var verbose = false
|
|
|
|
var version = false
|
2020-10-27 05:45:16 +00:00
|
|
|
var shellCompletion = ""
|
2020-01-13 09:11:56 +00:00
|
|
|
var log = logging.MustGetLogger("yq")
|