Skip to content

Commit 12f2a82

Browse files
committed
testing complete
1 parent d3404d6 commit 12f2a82

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

commands/coldbox/create/app.cfc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ component extends="coldbox-cli.models.BaseCommand" {
9999
}
100100

101101
// Start the job
102-
variables.print.boldGreenLine( "🔥 Starting to cookup your ColdBox App [#arguments.name#]..." ).toConsole()
102+
variables.print
103+
.boldGreenLine( "🔥 Starting to cookup your ColdBox App [#arguments.name#]..." )
104+
.line()
105+
.toConsole()
103106

104107
// Determine language via cfml or boxlang flags
105108
if ( arguments.cfml ) {
@@ -128,6 +131,8 @@ component extends="coldbox-cli.models.BaseCommand" {
128131

129132
printInfo( "⬇️ Downloading [#arguments.skeleton#] template..." )
130133

134+
variables.print.line().toConsole();
135+
131136
// Install the skeleton from ForgeBox or other endpoint
132137
packageService.installPackage(
133138
ID : arguments.skeleton,
@@ -270,7 +275,7 @@ component extends="coldbox-cli.models.BaseCommand" {
270275

271276
// VITE Setup
272277
if ( arguments.vite ) {
273-
if ( listFindNoCase( "modern,boxlang", arguments.skeleton ) == 0 ) {
278+
if ( !arguments.skeleton.reFindNoCase( "(modern|boxlang)" ) ) {
274279
printWarn( "⚠️ Vite setup is only supported for 'modern' or 'boxlang' skeletons. Skipping Vite setup." )
275280
} else {
276281
printInfo( "🥊 Setting up Vite for your frontend build system" )
@@ -308,7 +313,7 @@ component extends="coldbox-cli.models.BaseCommand" {
308313

309314
// REST Setup
310315
if ( arguments.rest ) {
311-
if ( listFindNoCase( "modern,boxlang", arguments.skeleton ) == 0 ) {
316+
if ( !arguments.skeleton.reFindNoCase( "(modern|boxlang)" ) ) {
312317
printWarn( "⚠️ REST setup is only supported for 'modern' or 'boxlang' skeletons. Skipping REST setup." )
313318
} else {
314319
printInfo( "🥊 Setting up a REST API only ColdBox application" )

0 commit comments

Comments
 (0)