php/WP_CLI/Runner.php
public function get_global_config_path() {

		if ( getenv( 'WP_CLI_CONFIG_PATH' ) ) {
			$config_path                    = getenv( 'WP_CLI_CONFIG_PATH' );
			$this->global_config_path_debug = 'Using global config from WP_CLI_CONFIG_PATH env var: ' . $config_path;
		} else {
			$config_path                    = Utils\get_home_dir() . '/.wp-cli/config.yml';
			$this->global_config_path_debug = 'Using default global config: ' . $config_path;
		}

		if ( is_readable( $config_path ) ) {
			return $config_path;
		}

		$this->global_config_path_debug = 'No readable global config found';

		return false;
	}
public function get_global_config_path() {

		if ( getenv( 'WP_CLI_CONFIG_PATH' ) ) {
			$config_path                    = getenv( 'WP_CLI_CONFIG_PATH' );
			$this->global_config_path_debug = 'Using global config from WP_CLI_CONFIG_PATH env var: ' . $config_path;
		} else {
			$config_path                    = Utils\get_home_dir() . '/.wp-cli/config.yml';
			$this->global_config_path_debug = 'Using default global config: ' . $config_path;
		}

		if ( is_readable( $config_path ) ) {
			return $config_path;
		}

		$this->global_config_path_debug = 'No readable global config found';

		return false;
	}
public function get_global_config_path ( ) { if ( getenv ( 'WP_CLI_CONFIG_PATH' ) ) { $ config_path = getenv ( 'WP_CLI_CONFIG_PATH' ) ; $ this -> global_config_path_debug = 'Using global config from WP_CLI_CONFIG_PATH env var: ' . $ config_path ; } else { $ config_path = Utils \ get_home_dir ( ) . '/.wp-cli/config.yml' ; $ this -> global_config_path_debug = 'Using default global config: ' . $ config_path ; } if ( is_readable ( $ config_path ) ) { return $ config_path ; } $ this -> global_config_path_debug = 'No readable global config found' ; return false ; }
Get the path to the global configuration YAML file.

@return string|false
Get the path to the global configuration YAML file .