color

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package color handles experimental GitHub CLI user experiences focused on color rendering concerns such as accessibility and color roles.

Note this is an experimental package where the API is subject to change.

Index

Constants

View Source
const (
	// AccessibleColorsEnv is the name of the environment variable to enable accessibile color features.
	AccessibleColorsEnv = "GH_ACCESSIBLE_COLORS"

	// AccessibleColorsSetting is the name of the `gh config` setting to enable accessibile color features.
	AccessibleColorsSetting = "accessible_colors"
)

Variables

This section is empty.

Functions

func IsAccessibleColorsEnabled

func IsAccessibleColorsEnabled() bool

IsAccessibleColorsEnabled returns true if accessible colors are enabled via environment variable or configuration setting with the environment variable having higher precedence.

If the environment variable is set, then any value other than the following will enable accessible colors: empty, "0", "false", or "no".

Types

This section is empty.

Jump to

Keyboard shortcuts

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