Skip to content

Commit

Permalink
Merge pull request #154 from cakephp-br/enable-cake-bake-all-prefix
Browse files Browse the repository at this point in the history
Enable prefix usage with `cake bake all`
  • Loading branch information
markstory committed Aug 21, 2015
2 parents 2d4e87a + 90f074d commit 36a58b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Shell/BakeShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function main()
$args = $this->args;
array_shift($args);
$args = implode($args, ' ');
$this->out(sprintf(' bin/cake bake template %s', $args), 2);
$this->out(sprintf(' <info>`bin/cake bake template %s`</info>', $args), 2);
return false;
}

Expand Down Expand Up @@ -296,6 +296,8 @@ public function getOptionParser()
])->addOption('plugin', [
'short' => 'p',
'help' => 'Plugin to bake into.'
])->addOption('prefix', [
'help' => 'Prefix to bake controllers and templates into.'
])->addOption('theme', [
'short' => 't',
'help' => 'The theme to use when baking code.',
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Shell/BakeShellTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function testAllWithModelName()
->with('Comments');

$this->Shell->connection = '';
$this->Shell->params = [];
$this->Shell->params = ['prefix' => 'account'];
$this->Shell->all('Comments');

$output = $this->out->messages();
Expand Down

0 comments on commit 36a58b1

Please sign in to comment.