Browse Source

Merge pull request #3490 from bcrowe/3.0-bakeshell-output

3.0 - Clean up BakeShell help and output
Mark Story 12 years ago
parent
commit
c4b66b4ec2

+ 4 - 4
src/Console/Command/BakeShell.php

@@ -200,11 +200,11 @@ class BakeShell extends Shell {
 
 		if (empty($name)) {
 			$this->Model->connection = $this->connection;
-			$this->out(__d('cake_console', 'Possible model names based on your database'));
+			$this->out(__d('cake_console', 'Possible model names based on your database:'));
 			foreach ($this->Model->listAll() as $table) {
 				$this->out('- ' . $table);
 			}
-			$this->out(__d('cake_console', 'Run <info>cake bake all [name]</info>. To generate skeleton files.'));
+			$this->out(__d('cake_console', 'Run <info>cake bake all [name]</info> to generate skeleton files.'));
 			return false;
 		}
 
@@ -219,7 +219,7 @@ class BakeShell extends Shell {
 
 		$this->View->main($name);
 
-		$this->out(__d('cake_console', '<success>Bake All complete</success>'), 1, Shell::QUIET);
+		$this->out(__d('cake_console', '<success>Bake All complete.</success>'), 1, Shell::QUIET);
 		return true;
 	}
 
@@ -236,7 +236,7 @@ class BakeShell extends Shell {
 			' If run with no command line arguments, Bake guides the user through the class creation process.' .
 			' You can customize the generation process by telling Bake where different parts of your application are using command line arguments.'
 		))->addSubcommand('all', [
-			'help' => __d('cake_console', 'Bake a complete MVC. optional <name> of a Model'),
+			'help' => __d('cake_console', 'Bake a complete MVC skeleton. Optional: <name> of a model.'),
 		])->addOption('connection', [
 			'help' => __d('cake_console', 'Database connection to use in conjunction with `bake all`.'),
 			'short' => 'c',

+ 1 - 1
tests/TestCase/Console/Command/BakeShellTest.php

@@ -87,7 +87,7 @@ class BakeShellTest extends TestCase {
 
 		$this->Shell->expects($this->at(2))
 			->method('out')
-			->with('<success>Bake All complete</success>');
+			->with('<success>Bake All complete.</success>');
 
 		$this->Shell->connection = '';
 		$this->Shell->params = [];