env

package
v1.201.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsColorEnabled

func IsColorEnabled() *bool

IsColorEnabled checks environment variables to determine if color should be enabled.

Returns:

  • false if NO_COLOR is set (disables color)
  • false if CLICOLOR=0 is set (disables color, unless forced)
  • true if CLICOLOR_FORCE or FORCE_COLOR is set (forces color)
  • nil if no color-related environment variables are set (caller should use TTY detection)

This function is designed for early initialization before flags or config are available. It only checks environment variables and has zero dependencies on other atmos packages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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