Skip to content

Commit 2d6586a

Browse files
authored
Merge pull request #1054 from mrrobot47/remove-unnecessary-flags
Remove unnecessary-flags from help
2 parents 5a81c3e + b8fafbf commit 2d6586a

File tree

3 files changed

+7
-42
lines changed

3 files changed

+7
-42
lines changed

php/EE/Bootstrap/IncludePackageAutoloader.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ protected function get_autoloader_paths() {
2323
}
2424

2525
$runner = new RunnerInstance();
26-
$skip_packages = $runner()->config['skip-packages'];
27-
if ( true === $skip_packages ) {
28-
\EE::debug( 'Skipped loading packages.', 'bootstrap' );
26+
//$skip_packages = $runner()->config['skip-packages'];
27+
// if ( true === $skip_packages ) {
28+
// \EE::debug( 'Skipped loading packages.', 'bootstrap' );
2929

30-
return false;
31-
}
30+
// return false;
31+
// }
3232

3333
$autoloader_path = $runner()->get_packages_dir_path() . 'vendor/autoload.php';
3434

php/EE/Runner.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,9 @@ public function init_config() {
530530

531531
$configurator->merge_yml( $this->global_config_path, $this->alias );
532532
$config = $configurator->to_array();
533-
$this->_required_files['global'] = $config[0]['require'];
534533
$configurator->merge_yml( $this->project_config_path, $this->alias );
535534
$config = $configurator->to_array();
536-
$this->_required_files['project'] = $config[0]['require'];
535+
//$this->_required_files['project'] = $config[0]['require'];
537536
}
538537

539538
// Runtime config and args
@@ -593,7 +592,7 @@ public function init_config() {
593592
$this->aliases['@all'] = 'Run command against every registered alias.';
594593
$this->aliases = array_reverse( $this->aliases );
595594
}
596-
$this->_required_files['runtime'] = $this->config['require'];
595+
//$this->_required_files['runtime'] = $this->config['require'];
597596
}
598597

599598
/**
@@ -736,11 +735,6 @@ public function start() {
736735
$this->_run_command_and_exit();
737736
}
738737

739-
if ( $this->config['ssh'] ) {
740-
$this->run_ssh_command( $this->config['ssh'] );
741-
return;
742-
}
743-
744738
// First try at showing man page.
745739
if ( $this->cmd_starts_with( array( 'help' ) ) ) {
746740
$this->auto_check_update();

php/config-spec.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,6 @@
44

55
return array(
66

7-
'ssh' => array(
8-
'runtime' => '=[<scheme>:][<user>@]<host|container>[:<port>][<path>]',
9-
'file' => '[<scheme>:][<user>@]<host|container>[:<port>][<path>]',
10-
'desc' => 'Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "vagrant").',
11-
),
12-
13-
# Used by wp-cli to control wp site remotely.
14-
# Might be useful in future for controlling ee remotely.
15-
// 'http' => array(
16-
// 'runtime' => '=<http>',
17-
// 'file' => '<http>',
18-
// 'desc' => 'Reserved for future.',
19-
// ),
20-
21-
'skip-packages' => array(
22-
'runtime' => '',
23-
'file' => '<bool>',
24-
'desc' => 'Skip loading all installed packages.',
25-
'default' => false,
26-
),
27-
28-
'require' => array(
29-
'runtime' => '=<path>',
30-
'file' => '<path>',
31-
'desc' => 'Load PHP file before running the command (may be used more than once).',
32-
'multiple' => true,
33-
'default' => array(),
34-
),
35-
367
'disabled_commands' => array(
378
'file' => '<list>',
389
'default' => array(),

0 commit comments

Comments
 (0)