simpler bake prompt

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
This commit is contained in:
AD7six 2011-04-17 18:12:25 +02:00
parent 4ab27d6fea
commit 1c62a66b0b

View file

@ -54,9 +54,8 @@ class ProjectTask extends Shell {
}
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) {