2020-01-13 09:11:56 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mikefarah/yq/v3/pkg/yqlib"
|
|
|
|
logging "gopkg.in/op/go-logging.v1"
|
|
|
|
)
|
|
|
|
|
|
|
|
var customTag = ""
|
|
|
|
var printMode = "v"
|
|
|
|
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-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
|
2020-02-02 23:13:48 +00:00
|
|
|
var defaultValue = ""
|
2020-02-03 05:52:12 +00:00
|
|
|
var indent = 2
|
2020-01-13 09:11:56 +00:00
|
|
|
var overwriteFlag = false
|
|
|
|
var autoCreateFlag = true
|
|
|
|
var appendFlag = false
|
|
|
|
var verbose = false
|
|
|
|
var version = false
|
|
|
|
var docIndex = "0"
|
|
|
|
var log = logging.MustGetLogger("yq")
|
|
|
|
var lib = yqlib.NewYqLib()
|
|
|
|
var valueParser = yqlib.NewValueParser()
|