WP_CLI

Runner::init_colorization()publicWP-CLI 1.0

Method of the class: Runner{}

No Hooks.

Return

null. Nothing.

Usage

$Runner = new Runner();
$Runner->init_colorization();

Runner::init_colorization() code WP-CLI 2.8.0-alpha

public function init_colorization() {
	if ( 'auto' === $this->config['color'] ) {
		$this->colorize = ( ! Utils\isPiped() && ! Utils\is_windows() );
	} else {
		$this->colorize = $this->config['color'];
	}
}