Skip to content

Commit 9f8100a

Browse files
committed
cleanup the ASCII art
1 parent bed384c commit 9f8100a

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

commands/wheels/info.cfc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ component extends="base" {
2222
.redLine("| | | `--, | |.'.| || .-. || .-. :| .-. :| |( .-' | | | | | | ")
2323
.redLine("' '--'\| |` | ,'. || | | |\ --.\ --.| |.-' `) ' '--'\| '--.| | ")
2424
.redLine(" `-----'`--' '--' '--'`--' `--' `----' `----'`--'`----' `-----'`-----'`--' ")
25-
.yellowBoldLine( "================CFWheels CLI =======================" )
26-
.yellowBoldLine( "This is highly experimental, and will probably fry your brain" )
27-
.yellowBoldLine( "====================================================" )
28-
.yellowBoldLine( "= Current Working Directory: #current.directory#")
29-
.yellowBoldLine( "= CommandBox Module Root: #current.moduleRoot#")
30-
.yellowBoldLine( "= Current CFWheels Version in this directory: #current.wheelsVersion#")
31-
.yellowBoldLine( "====================================================" );
25+
.yellowBoldLine( "=================================== CFWheels CLI ===================================" )
26+
.yellowBoldLine( "Current Working Directory: #current.directory#")
27+
.yellowBoldLine( "CommandBox Module Root: #current.moduleRoot#")
28+
.yellowBoldLine( "Current CFWheels Version in this directory: #current.wheelsVersion#")
29+
.yellowBoldLine( "====================================================================================" );
3230
}
3331

3432
}

commands/wheels/init.cfc

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)