Skip to content

Commit

Permalink
simpler bake prompt
Browse files Browse the repository at this point in the history
we don't need to repeat the defualt path twice, and a user can just as
easily type "appname" instead of /some/absolute/path/appname
  • Loading branch information
AD7six committed Apr 17, 2011
1 parent 4ab27d6 commit 1c62a66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Cake/Console/Command/Task/ProjectTask.php
Expand Up @@ -54,9 +54,8 @@ public function execute() {
}

while (!$project) {
$prompt = __d('cake_console', "What is the path for this app including the app directory name?\n Example:");
$default = APP_PATH . 'myapp';
$project = $this->in($prompt . $default, null, $default);
$prompt = __d('cake_console', "What is the path to the project you want to bake?");
$project = $this->in($prompt, null, APP_PATH . 'myapp');
}

if ($project) {
Expand Down

0 comments on commit 1c62a66

Please sign in to comment.