func (c *SuperCommand) isSerialisableFormatDirective() bool {
	formatFlag := c.commonflags.Lookup("format")
	if formatFlag == nil {
		return false
	}
	formatName := formatFlag.Value.String()
	if typeFormatter, ok := DefaultFormatters[formatName]; ok {
		return typeFormatter.Serialisable
	}
	return false
}
// isSerialisableFormatDirective checks to see if the output format for a given
// super command common flag (global), is intended to be used by a machine or
// not.
// It is expected that when this is set to true, extra actions are performed on
// the output to mitigate addition verbose logging or interactivity.
isSerialisableFormatDirective checks to see if the output format for a given
super command common flag (global), is intended to be used by a machine or
not.
It is expected that when this is set to true, extra actions are performed on
the output to mitigate addition verbose logging or interactivity.
// isSerialisableFormatDirective checks to see if the output format for a given // super command common flag ( global ) is intended to be used by a machine or // not . // It is expected that when this is set to true extra actions are performed on // the output to mitigate addition verbose logging or interactivity .
func (c *SuperCommand) isSerialisableFormatDirective() bool {
	formatFlag := c.commonflags.Lookup("format")
	if formatFlag == nil {
		return false
	}
	formatName := formatFlag.Value.String()
	if typeFormatter, ok := DefaultFormatters[formatName]; ok {
		return typeFormatter.Serialisable
	}
	return false
}
func ( c * SuperCommand ) isSerialisableFormatDirective ( ) bool { formatFlag := c . commonflags . Lookup ( " " ) if formatFlag == nil { return false } formatName := formatFlag . Value . String ( ) if typeFormatter , ok := DefaultFormatters [ formatName ] ; ok { return typeFormatter . Serialisable } return false }
isSerialisableFormatDirective checks to see if the output format for a given
super command common flag (global), is intended to be used by a machine or
not.
isSerialisableFormatDirective checks to see if the output format for a given super command common flag ( global ) is intended to be used by a machine or not .