Documentation
¶
Index ¶
- Constants
- func GetErrorMessage(msg string, options OutputOptions) string
- func GetLabel(label string, options OutputOptions) string
- func GetSummaryField(name string, value string, options OutputOptions) string
- func WriteErrorMessage(builder *strings.Builder, msg string, options OutputOptions)
- func WriteHeader(builder *strings.Builder, title string)
- func WriteSummaryField(builder *strings.Builder, name string, value string, options OutputOptions)
- type OutputOptions
Constants ¶
View Source
const ( FieldNameColor = "#87afff" // Light, vibrant blue to match "doom-one2" theme FieldValueColor = "#5faf87" // Soothing blue-green, also from "doom-one2" TerminalStyle = "doom-one2" // See github.com/alecthomas/chroma/quick for options ErrorColor = "#ea685b" )
Variables ¶
This section is empty.
Functions ¶
func GetErrorMessage ¶
func GetErrorMessage(msg string, options OutputOptions) string
func GetLabel ¶
func GetLabel(label string, options OutputOptions) string
func GetSummaryField ¶
func GetSummaryField(name string, value string, options OutputOptions) string
func WriteErrorMessage ¶
func WriteErrorMessage(builder *strings.Builder, msg string, options OutputOptions)
func WriteHeader ¶
func WriteSummaryField ¶
func WriteSummaryField(builder *strings.Builder, name string, value string, options OutputOptions)
Types ¶
type OutputOptions ¶
type OutputOptions interface {
InColor() bool
}
Click to show internal directories.
Click to hide internal directories.