yq/cmd/constant.go

46 lines
845 B
Go
Raw Normal View History

package cmd
import "os"
2022-11-10 11:07:53 +00:00
var unwrapScalarFlag = newUnwrapFlag()
var unwrapScalar = false
2020-11-13 03:07:11 +00:00
2020-11-29 09:25:47 +00:00
var writeInplace = false
var outputToJSON = false
var outputFormat = ""
var inputFormat = ""
2021-12-21 04:02:07 +00:00
2020-11-30 05:35:21 +00:00
var exitStatus = false
2020-02-03 05:52:12 +00:00
var indent = 2
2020-11-13 02:35:59 +00:00
var noDocSeparators = false
2020-11-06 03:37:01 +00:00
var nullInput = false
var nulSepOutput = false
var verbose = false
var version = false
2020-12-28 00:40:41 +00:00
var prettyPrint = false
2020-11-30 05:05:07 +00:00
var forceColor = false
var forceNoColor = false
var colorsEnabled = false
func init() {
// when NO_COLOR environment variable presents and not an empty string the colored output should be disabled;
// refer to no-color.org
forceNoColor = os.Getenv("NO_COLOR") != ""
}
2021-07-18 02:28:46 +00:00
// can be either "" (off), "extract" or "process"
var frontMatter = ""
2021-10-29 03:14:39 +00:00
var splitFileExp = ""
var splitFileExpFile = ""
2021-10-29 03:14:39 +00:00
2020-11-30 05:05:07 +00:00
var completedSuccessfully = false
var forceExpression = ""
2022-03-01 00:50:09 +00:00
var expressionFile = ""