Documentation ¶
Index ¶
- Constants
- Variables
- func CreateUpReadCmd() *cobra.Command
- func GetVersionDisplay() string
- func New() *cobra.Command
- func SetLogLevel(level string)
- func UpCmd() *cobra.Command
- func UpDeletePathFromFile(filepath, elepath string, inplace bool, logLevel string) (string, error)
- func UpReadYmlFile(filepath, epath, logLevel string, toArray bool) (string, error)
- func UpReadYmlStr(ymlstr, epath, logLevel string, toArray bool) (string, error)
- func UpValidateYmlFile(filename string, logLevel string) error
- func UpValidateYmlStr(ymlstr string, logLevel string) error
- func UpWriteNodeFromFile(filepath, elepath, value string, inplace bool, logLevel string) (string, error)
- func UpWriteNodeFromStrForComplexValueFromYmlFile(ymlstr, elepath, complexymlvaluefilepath string, logLevel string) (string, error)
- func UpWriteNodeFromStrForComplexValueFromYmlStr(ymlstr, elepath, complexymlvalue string, logLevel string) (string, error)
- func UpWriteNodeFromStrForSimpleValue(ymlstr, elepath, value string, logLevel string) (string, error)
- type YmlResultWriter
Constants ¶
View Source
const ProductName = "yq"
ProductName is the name of the product
Variables ¶
View Source
var ( TestYmlStr = `` /* 1039-byte string literal not displayed */ TestYmlStr2 = ` name: Fred age: 22 --- name: Stella age: 23 --- name: Android age: 232 ` TestYmlStr3 = `` /* 225-byte string literal not displayed */ )
View Source
var ( GitCommit string GitDescribe string // Version is main version number that is being run at the moment. Version = "3.2.2" // VersionPrerelease is a pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "dev" (in development), "beta", "rc1", etc. VersionPrerelease = "" )
The git commit that was compiled. This will be filled in by the compiler.
Functions ¶
func CreateUpReadCmd ¶
func GetVersionDisplay ¶
func GetVersionDisplay() string
GetVersionDisplay composes the parts of the version in a way that's suitable for displaying to humans.
func SetLogLevel ¶
func SetLogLevel(level string)
func UpDeletePathFromFile ¶ added in v3.2.8
func UpReadYmlFile ¶
func UpValidateYmlFile ¶
func UpValidateYmlStr ¶
func UpWriteNodeFromFile ¶ added in v3.3.1
func UpWriteNodeFromStrForComplexValueFromYmlFile ¶ added in v3.3.1
func UpWriteNodeFromStrForComplexValueFromYmlStr ¶ added in v3.3.1
Types ¶
type YmlResultWriter ¶ added in v3.2.8
Source Files ¶
Click to show internal directories.
Click to hide internal directories.