Skip to content
Permalink
Browse files

Add a shell commend to list loaded plugins.

  • Loading branch information...
dereuromark committed Feb 1, 2016
1 parent 7d79b1b commit 9ec101c759bbf3a1a60d0d93c8661b42ddc99426
Showing with 15 additions and 1 deletion.
  1. +15 −1 src/Shell/PluginShell.php
@@ -15,6 +15,7 @@
namespace Cake\Shell;
use Cake\Console\Shell;
use Cake\Core\Plugin;
/**
* Shell for tasks related to plugins.
@@ -33,6 +34,14 @@ class PluginShell extends Shell
'Unload',
];
/**
* @return void
*/
public function loaded() {
$loaded = Plugin::loaded();
$this->out($loaded);
}
/**
* Gets the option parser instance and configures it.
*
@@ -46,7 +55,12 @@ public function getOptionParser()
->addSubcommand('assets', [
'help' => 'Symlink / copy plugin assets to app\'s webroot',
'parser' => $this->Assets->getOptionParser()
])->addSubcommand('load', [
])
->addSubcommand('loaded', [
'help' => 'Lists all loaded plugins',
'parser' => $parser,
])
->addSubcommand('load', [
'help' => 'Loads a plugin',
'parser' => $this->Load->getOptionParser(),
])

0 comments on commit 9ec101c

Please sign in to comment.
You can’t perform that action at this time.