@@ -17,19 +17,19 @@ component extends="base" {
1717 **/
1818 function run () {
1919
20- print .greenBoldLine ( " ========= Wheels init ============================" )
21- .greenBoldLine ( " = This function will attempt to add a few things " )
22- .greenBoldLine ( " = to an EXISTING CFWheels installation to help " )
23- .greenBoldLine ( " = the CLI interact." )
24- .greenBoldLine ( " = " )
25- .greenBoldLine ( " = We're going to assume the following:" )
26- .greenBoldLine ( " = - you've already setup a local datasource/database" )
27- .greenBoldLine ( " = - you've already set a reload password" )
28- .greenBoldLine ( " = " )
29- .greenBoldLine ( " = We're going to try and do the following:" )
30- .greenBoldLine ( " = - create a box.json to help keep track of the wheels version" )
31- .greenBoldLine ( " = - create a server.json" )
32- .greenBoldLine ( " ==================================================" )
20+ print .greenBoldLine ( " ==================================== Wheels init ======= ============================" )
21+ .greenBoldLine ( " This function will attempt to add a few things " )
22+ .greenBoldLine ( " to an EXISTING CFWheels installation to help " )
23+ .greenBoldLine ( " the CLI interact." )
24+ .greenBoldLine ( " " )
25+ .greenBoldLine ( " We're going to assume the following:" )
26+ .greenBoldLine ( " - you've already setup a local datasource/database" )
27+ .greenBoldLine ( " - you've already set a reload password" )
28+ .greenBoldLine ( " " )
29+ .greenBoldLine ( " We're going to try and do the following:" )
30+ .greenBoldLine ( " - create a box.json to help keep track of the wheels version" )
31+ .greenBoldLine ( " - create a server.json" )
32+ .greenBoldLine ( " ================================== ==================================================" )
3333 .line ().toConsole ();
3434 if (! confirm (" Sound ok? [y/n] " )){
3535 error (" Ok, aborting..." );
@@ -57,9 +57,9 @@ component extends="base" {
5757
5858 // Create a server.json if one doesn't exist
5959 if (! fileExists (serverJsonLocation )){
60- var appName = ask (" Please enter an application name: we use this to make the server.json servername unique: " );
60+ var appName = ask ( message = " Please enter an application name: we use this to make the server.json servername unique: " , defaultResponse = ' myapp ' );
6161 appName = helpers .stripSpecialChars (appName );
62- var setEngine = ask (" Please enter a default cfengine, i.e lucee@5: " );
62+ var setEngine = ask ( message = ' Please enter a default cfengine: ' , defaultResponse = ' lucee@5' );
6363
6464 // Make server.json server name unique to this app: assumes lucee by default
6565 print .greenline ( " ========= Creating default server.json" ).toConsole ();
0 commit comments