@@ -17,19 +17,19 @@ component extends="base" {
17
17
**/
18
18
function run () {
19
19
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 ( " ================================== ==================================================" )
33
33
.line ().toConsole ();
34
34
if (! confirm (" Sound ok? [y/n] " )){
35
35
error (" Ok, aborting..." );
@@ -57,9 +57,9 @@ component extends="base" {
57
57
58
58
// Create a server.json if one doesn't exist
59
59
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 ' );
61
61
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' );
63
63
64
64
// Make server.json server name unique to this app: assumes lucee by default
65
65
print .greenline ( " ========= Creating default server.json" ).toConsole ();
0 commit comments