Documentation
¶
Index ¶
- Constants
- func AddFlags(flags *pflag.FlagSet)
- func ApplyFilter(body []byte, filter string) ([]byte, error)
- func ApplyRawFilter(body []byte, filter string, out io.Writer) error
- func ApplyToRaw(raw any, outType cmdcommon.OutputFormat, settings Settings, out io.Writer) (any, bool, error)
- func BindFlags(cfg config.Hook, flags *pflag.FlagSet) error
- func BodyToPrintable(body []byte) string
- func HasFilter(settings Settings) bool
- func MaybeColorizeOutput(raw []byte, formatted, theme string) string
- func ShouldUseColor(mode cmdcommon.ColorMode, out io.Writer) bool
- func ValidateOutputFormat(outType cmdcommon.OutputFormat, settings Settings) error
- type Settings
Constants ¶
View Source
const ( FlagName = "jq" ColorFlagName = "jq-color" ColorThemeFlagName = "jq-color-theme" RawOutputFlagName = "jq-raw-output" RawOutputFlagShort = "r" DefaultExpressionConfigPath = "jq.default-expression" ColorEnabledConfigPath = "jq.color.enabled" ColorThemeConfigPath = "jq.color.theme" RawOutputConfigPath = "jq.raw-output" DefaultTheme = "friendly" )
Variables ¶
This section is empty.
Functions ¶
func ApplyToRaw ¶
func BodyToPrintable ¶
func MaybeColorizeOutput ¶
func ValidateOutputFormat ¶
func ValidateOutputFormat(outType cmdcommon.OutputFormat, settings Settings) error
Types ¶
Click to show internal directories.
Click to hide internal directories.