Browse Source

stable

feature/refactor-php
harshadyeola 9 years ago
parent
commit
e991b48812
  1. 11
      Untitled
  2. 2
      php/EE_CLI/Configurator.php
  3. 2
      php/EE_CLI/Dispatcher/RootCommand.php
  4. 2
      php/EE_CLI/Runner.php
  5. 2
      php/Spyc.php

11
Untitled

@ -0,0 +1,11 @@
<?php
namespace EE_CLI;
use EE_CLI;
$configurator = \EE_CLI::get_configurator();
$config_path = "/Users/harshad/config.yml"
$configurator->merge_yml($config_path);

2
php/EE_CLI/Configurator.php

@ -115,7 +115,7 @@ class Configurator {
$details = $this->spec[ $key ];
if ( isset( $details['deprecated'] ) ) {
fwrite( STDERR, "WP-CLI: The --{$key} global parameter is deprecated. {$details['deprecated']}\n" );
fwrite( STDERR, "EE-CLI: The --{$key} global parameter is deprecated. {$details['deprecated']}\n" );
}
if ( $details['multiple'] ) {

2
php/EE_CLI/Dispatcher/RootCommand.php

@ -14,7 +14,7 @@ class RootCommand extends CompositeCommand {
public function __construct() {
$this->parent = false;
$this->name = 'EE';
$this->name = 'ee';
$this->shortdesc = 'Manage WordPress through the command-line.';
}

2
php/EE_CLI/Runner.php

@ -33,7 +33,7 @@ class Runner {
}
/**
* Register a command for early invocation, generally before WordPress loads.
* Register a command for early invocation.
*
* @param string $when Named execution hook
* @param EE_CLI\Dispatcher\Subcommand $command

2
php/Spyc.php

@ -755,7 +755,7 @@ class Spyc {
return $this->addArrayInline ($incoming_data, $incoming_indent);
$key = key ($incoming_data);
$value = \WP_CLI\Utils\get_flag_value( $incoming_data, $key );
$value = \EE_CLI\Utils\get_flag_value( $incoming_data, $key );
if ($key === '__!YAMLZero') $key = '0';
if ($incoming_indent == 0 && !$this->_containsGroupAlias && !$this->_containsGroupAnchor) { // Shortcut for root-level values.

Loading…
Cancel
Save