|
|
@@ -27,7 +27,7 @@ class PluginShell extends Shell {
|
|
|
*
|
|
|
* @var array
|
|
|
*/
|
|
|
- public $tasks = ['SymlinkAssets'];
|
|
|
+ public $tasks = ['Assets'];
|
|
|
|
|
|
/**
|
|
|
* Override main() for help message hook
|
|
|
@@ -37,14 +37,14 @@ class PluginShell extends Shell {
|
|
|
public function main() {
|
|
|
$this->out('<info>Plugin Shell</info>');
|
|
|
$this->hr();
|
|
|
- $this->out('[S]ymlink / copy assets to app\'s webroot');
|
|
|
+ $this->out('[A]ssets symlink / copy to app\'s webroot');
|
|
|
$this->out('[H]elp');
|
|
|
$this->out('[Q]uit');
|
|
|
|
|
|
- $choice = strtolower($this->in('What would you like to do?', ['S', 'H', 'Q']));
|
|
|
+ $choice = strtolower($this->in('What would you like to do?', ['A', 'H', 'Q']));
|
|
|
switch ($choice) {
|
|
|
- case 's':
|
|
|
- $this->SymlinkAssets->main();
|
|
|
+ case 'a':
|
|
|
+ $this->Assets->main();
|
|
|
break;
|
|
|
case 'h':
|
|
|
$this->out($this->OptionParser->help());
|
|
|
@@ -52,7 +52,7 @@ class PluginShell extends Shell {
|
|
|
case 'q':
|
|
|
return $this->_stop();
|
|
|
default:
|
|
|
- $this->out('You have made an invalid selection. Please choose a command to execute by entering S, H, or Q.');
|
|
|
+ $this->out('You have made an invalid selection. Please choose a command to execute by entering A, H, or Q.');
|
|
|
}
|
|
|
$this->hr();
|
|
|
$this->main();
|
|
|
@@ -68,9 +68,9 @@ class PluginShell extends Shell {
|
|
|
|
|
|
$parser->description(
|
|
|
'Plugin Shell symlinks your plugin assets to app\'s webroot.'
|
|
|
- )->addSubcommand('symlink_assets', [
|
|
|
- 'help' => 'Symlink assets to app\'s webroot',
|
|
|
- 'parser' => $this->SymlinkAssets->getOptionParser()
|
|
|
+ )->addSubcommand('assets', [
|
|
|
+ 'help' => 'Symlink / copy assets to app\'s webroot',
|
|
|
+ 'parser' => $this->Assets->getOptionParser()
|
|
|
]);
|
|
|
|
|
|
return $parser;
|