Browse Source

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
AD7six 15 years ago
parent
commit
1c62a66b0b
1 changed files with 2 additions and 3 deletions
  1. 2 3
      lib/Cake/Console/Command/Task/ProjectTask.php

+ 2 - 3
lib/Cake/Console/Command/Task/ProjectTask.php

@@ -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) {