init_colors

Function init_colors 

Source
pub fn init_colors()
Expand description

Initialize color support based on environment.

Should be called early in the application lifecycle (e.g., in main). Respects NO_COLOR and FORCE_COLOR environment variables.

Note: This function currently checks color support but doesn’t modify global state. The owo-colors crate automatically respects NO_COLOR and terminal capabilities. This function is provided for explicit initialization and future extensibility.

§Examples

use fob_cli::ui;

ui::init_colors();
// ... rest of application