<?php

if ( !defined( 'WP_CLI' ) ) return;

global $argv;

$env = $argv[1];

$config = array();

$config_path = getenv( 'HOME' ) . '/.wp-cli/config.yml';

if ( is_readable( $config_path ) ){

    $configurator = \WP_CLI::get_configurator();

    $configurator->merge_yml( $config_path );
    list( $config, $extra_config ) = $configurator->to_array();
}

if ( isset($config['color']) && $config['color'] === 'auto' ) {
    $colorize = !\cli\Shell::isPiped();
} else {
    $colorize = true;
}


if ( isset($config['quiet']) && $config['quiet'] )
    $logger = new \WP_CLI\Loggers\Quiet;
else
    $logger = new \WP_CLI\Loggers\Regular( $colorize );

\WP_CLI::set_logger( $logger );

try {
    $environment = new \ViewOne\Environment();
    $environment->run($env);
} catch (Exception $e) {
    \WP_CLI::error( $e->getMessage() );
}

<?php

if ( !defined( 'WP_CLI' ) ) return;

require_once 'src/ViewOne/Environment.php';

global $argv;

$env = $argv[1];

$config = array();

$config_path = getenv( 'HOME' ) . '/.wp-cli/config.yml';

if ( is_readable( $config_path ) ){

    $configurator = \WP_CLI::get_configurator();

    $configurator->merge_yml( $config_path );
    list( $config, $extra_config ) = $configurator->to_array();
}

if ( isset($config['color']) && $config['color'] === 'auto' ) {
    $colorize = !\cli\Shell::isPiped();
} else {
    $colorize = true;
}


if ( isset($config['quiet']) && $config['quiet'] )
    $logger = new \WP_CLI\Loggers\Quiet;
else
    $logger = new \WP_CLI\Loggers\Regular( $colorize );

\WP_CLI::set_logger( $logger );

try {
    $environment = new \ViewOne\Environment();
    $environment->run($env);
} catch (Exception $e) {
    \WP_CLI::error( $e->getMessage() );
}

--- 
+++ 
@@ -1,8 +1,6 @@
 <?php
 
 if ( !defined( 'WP_CLI' ) ) return;
-
-require_once 'src/ViewOne/Environment.php';
 
 global $argv;
 
Revert "Add require for global installation"

This reverts commit 586d35539e88ce7ade09c8b38ae501e3b81c74d7.
