Skip to main content

color_enabled

Function color_enabled 

Source
pub fn color_enabled(no_color_flag: bool) -> bool
Expand description

Whether ANSI color should be used: honors an explicit no-color flag, the NO_COLOR env convention, and whether stderr is a TTY.

Single source of truth for the color rule, shared by the hm host context and the cloud plugin’s render preferences.