environment

package
v0.0.0-...-8b7d7e7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorIsForced

func ColorIsForced() bool

ColorIsForced returns true if the FORCE_COLOR environment variable is set to a truthy value.

See https://force-color.org/ for more information.

func NonColorRequested

func NonColorRequested() bool

NonColorRequested returns true if the NO_COLOR environment variable is set to a truthy value.

See https://no-color.org/ for more information.

func SupportsColor

func SupportsColor() bool

SupportsColor returns true if the environment supports color output.

See NonColorRequested and ColorIsForced functions for more information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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