color

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoColor bool

NoColor disables all color output when set to true. This is set by the --color=none flag or the DASH0_COLOR=none environment variable.

Functions

func SprintIssueStatus added in v1.15.0

func SprintIssueStatus(status string, width int) string

SprintIssueStatus returns the failed-check issue status color-coded and padded to width visible characters for terminal output. When width is 0, no padding is applied.

func SprintSeverity

func SprintSeverity(sev string, width int) string

SprintSeverity returns the severity string color-coded and padded to width visible characters for terminal output. When width is 0, no padding is applied. When color is disabled (via NoColor) or stdout is not a TTY, the severity is returned as plain left-padded text.

func SprintSpanStatus

func SprintSpanStatus(status string, width int) string

SprintSpanStatus returns the span status string color-coded and padded to width visible characters for terminal output. When width is 0, no padding is applied.

func StderrOutput added in v1.7.0

func StderrOutput() *termenv.Output

StderrOutput returns a termenv output for stderr, respecting the NoColor flag.

func StdoutOutput added in v1.7.0

func StdoutOutput() *termenv.Output

StdoutOutput returns a termenv output for stdout, respecting the NoColor flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL