color

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package color provides terminal coloring that is a no-op unless enabled, so output stays clean when piped or redirected (codes would otherwise pollute files and tools like jq).

Index

Constants

This section is empty.

Variables

View Source
var Enabled bool

Enabled gates all coloring. The CLI sets it from TTY detection / --color / NO_COLOR. When false, every helper returns its input unchanged.

Functions

func Cant

func Cant(s string) string

Cant renders the ? (can't-characterize) level.

func Dim

func Dim(s string) string

Dim renders de-emphasized text (info/dead, comments).

func Force

func Force(s string) string

Force renders the ⚠⚠ (force-multiplier) level.

func Tier

func Tier(name string) string

Tier colors a tier label by name.

func Warn

func Warn(s string) string

Warn renders the ⚠ (notable) level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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