Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ValidTypes = []Type{TypeYAML, TypeJSON}
)
Functions ¶
Types ¶
type Type ¶
type Type string
OutputType specifies the type of output a command produces
const ( // StringValueType is used for parameter values that are provided as a string. TypeYAML Type = "yaml" // ArrayValueType is used for parameter values that described an array of values. TypeJSON Type = "json" InvalidOutputError = "invalid output format, only support 'yaml' or 'json' or empty" )
func (*Type) AsStringPtr ¶
func (Type) IsFormattedOutput ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.