UI.Formatter (fnord v0.8.27)

View Source

Formats output strings using an external command specified by the FNORD_FORMATTER environment variable. If unset or empty, returns the original string. On command failure or non-zero exit code, logs a warning and returns the original string.

Note: We invoke the formatter via shell -c, which may be subject to shell injection if FNORD_FORMATTER contains malicious content. This CLI is intended for trusted environments, so this risk is accepted.

Summary

Functions

format_output(input)

@spec format_output(binary()) :: binary()