@@ -99,18 +99,18 @@ component extends="coldbox-cli.models.BaseCommand" {
9999 }
100100
101101 // Start the job
102- variables .print .boldGreenLine ( " 🧑🍳 Creating & Prepping Your App [#arguments .name #]" ).toConsole ()
102+ variables .print .boldGreenLine ( " 🧑🍳 Starting to cookup your ColdBox App [#arguments .name #]... " ).toConsole ()
103103
104104 // Determine language via cfml or boxlang flags
105105 if ( arguments .cfml ) {
106106 arguments .boxlang = false ;
107107 if ( arguments .skeleton == variables .defaultSkeleton ) {
108108 arguments .skeleton = " modern" ;
109109 }
110- variables . print . line ( " ⚡Language set to CFML" ). toConsole ( )
110+ printInfo ( " ⚡Language set to CFML" )
111111 } else {
112112 arguments .boxlang = true ;
113- variables . print . line ( " 🥊 Language set to BoxLang" ). toConsole ( )
113+ printInfo ( " 🥊 Language set to BoxLang" )
114114 }
115115
116116 // This will make the directory canonical and absolute
@@ -126,6 +126,8 @@ component extends="coldbox-cli.models.BaseCommand" {
126126 arguments .skeleton = variables .templateMap [ arguments .skeleton ];
127127 }
128128
129+ printInfo ( " 🛠️ Starting to scaffold your application with the [#arguments .skeleton #] template" )
130+
129131 // Install the skeleton from ForgeBox or other endpoint
130132 packageService .installPackage (
131133 ID : arguments .skeleton ,
@@ -141,19 +143,20 @@ component extends="coldbox-cli.models.BaseCommand" {
141143 var originalPath = getCWD ();
142144 // init must be run from CWD
143145 shell .cd ( arguments .directory );
144- variables .print .line ( " 🚀 Initializing ColdBox Application as a Box Package" ).toConsole ();
145146 command ( " init" )
146- .params (
147- name : arguments .name ,
148- slug : replace ( arguments .name , " " , " " , " all" ),
149- wizard : arguments .initWizard
147+ .params (
148+ name : arguments .name ,
149+ slug : replace ( arguments .name , " " , " " , " all" ),
150+ wizard : arguments .initWizard
150151 )
151152 .run ();
152153 shell .cd ( originalPath );
154+ printInfo ( " 🚀 ColdBox Application initialized as a CommandBox Package" )
153155 }
154156
155- // Prepare language
156- variables .print .line ( " 🤖 Setting up language specifics" ).toConsole ();
157+ printSuccess ( " ✅ Application scaffolded successfully!" )
158+ printInfo ( " 🌐 Setting Up Your box.json" )
159+
157160 if ( arguments .boxlang ) {
158161 command ( " package set" ).params ( language : " BoxLang" ).run ();
159162 } else {
@@ -172,15 +175,15 @@ component extends="coldbox-cli.models.BaseCommand" {
172175 .run ();
173176
174177 // set the server name if the user provided one
175- printInfo ( " 🤖 Preparing server" );
178+ printInfo ( " 📡 Preparing server and support files... " );
176179 if ( arguments .name ! = defaultAppName ) {
177180 command ( " server set" ).params ( name = arguments .name ).run ();
178181 }
179182
180183 // ENV File
181184 var envFile = arguments .directory & " .env" ;
182185 if ( ! fileExists ( envFile ) ) {
183- printInfo ( " 🌿 Creating .env file" );
186+ printInfo ( " 🌿 Creating your .env file" );
184187 if ( fileExists ( arguments .directory & " .env.example" ) ) {
185188 fileCopy (
186189 arguments .directory & " .env.example" ,
@@ -193,7 +196,7 @@ component extends="coldbox-cli.models.BaseCommand" {
193196 );
194197 }
195198 } else {
196- printInfo ( " ⏭️ .env file already exists, skipping creation." )
199+ printWarn ( " ⏭️ .env file already exists, skipping creation." )
197200 }
198201
199202 // Copilot instructions
@@ -225,23 +228,21 @@ component extends="coldbox-cli.models.BaseCommand" {
225228 }
226229 }
227230 } else {
228- printInfo ( " ⏭️ copilot-instructions.md file already exists, skipping creation." )
231+ printWarn ( " ⏭️ copilot-instructions.md file already exists, skipping creation." )
229232 }
230233
231234 // Run migrations init
232235 if ( arguments .migrations ) {
233236 printInfo ( " 🚀 Initializing Migrations" );
234237 variables .utility .ensureMigrationsModule ();
235238 command ( " migrate init" ).run ();
236- variables .print
237- .line ( " 👉 You can run `migrate help` to see all available migration commands." )
238- .toConsole ();
239+ printHelp ( " 👉 You can run `migrate help` to see all available migration commands." )
239240 }
240241
241242 if ( arguments .docker ) {
242243 printInfo ( " 🥊 Setting up Docker for containerization" )
243244 if ( directoryExists ( arguments .directory & " docker" ) ) {
244- printInfo ( " ⏭️ Docker directory already exists, skipping creation." )
245+ printWarn ( " ⏭️ Docker directory already exists, skipping creation." )
245246 } else {
246247 directoryCreate ( arguments .directory & " docker" , true )
247248 fileCopy (
@@ -256,8 +257,10 @@ component extends="coldbox-cli.models.BaseCommand" {
256257 " #variables .settings .templatesPath #/docker/.dockerignore" ,
257258 arguments .directory & " docker/.dockerignore"
258259 )
260+
261+ printSuccess ( " ✅ Docker setup complete!" )
262+
259263 variables .print
260- .line ( " ✅ Docker setup complete!" )
261264 .line ( " 👉 You can run 'box run-script docker:build' to build your Docker image." )
262265 .line ( " 👉 You can run 'box run-script docker:run' to run your Docker container." )
263266 .line ( " 👉 You can run 'box run-script docker:bash' to go into the container shell." )
@@ -297,8 +300,9 @@ component extends="coldbox-cli.models.BaseCommand" {
297300 printInfo ( " 🥊 Installing ColdBox Vite Helpers" )
298301 command ( " install" ).params ( " vite-helpers" ).run ();
299302
303+ printSuccess ( " ✅ Vite setup complete!" )
304+
300305 variables .print
301- .line ( " ✅ Vite setup complete!" )
302306 .line ( " 👉 You can run 'npm install' to install the dependencies" )
303307 .line ( " 👉 You can run 'npm run dev' to start the development server" )
304308 .line ( " 👉 You can run 'npm run build' to build the production assets" )
@@ -312,8 +316,6 @@ component extends="coldbox-cli.models.BaseCommand" {
312316 printWarn ( " ⚠️ REST setup is only supported for 'modern' or 'boxlang' skeletons. Skipping REST setup." )
313317 } else {
314318 printInfo ( " 🥊 Setting up a REST API only ColdBox application" )
315- printInfo ( " 👉 You can always add views and layouts later if you change your mind" )
316-
317319 // Router
318320 fileDelete ( arguments .directory & " app/config/Router.bx" )
319321 fileCopy (
@@ -384,17 +386,18 @@ component extends="coldbox-cli.models.BaseCommand" {
384386 )
385387 .run ();
386388
387- printInfo ( " ✅ REST API only setup complete!" )
389+ printSuccess ( " ✅ REST API only setup complete!" )
388390 }
389391 }
390392
391- variables .print
392- .line ( " 🥊 Your ColdBox BoxLang application is ready to roll!" )
393- .line ( " 👉 Run 'box server start' to launch the development server." )
394- .line ( " 👉 Run 'box coldbox help' to see a list of available commands from the ColdBox CLI" )
395- .line ( " ℹ️. You can remove the [Setup.bx] file from your project now or keep it for future reference." )
396- .line ( " 🗳️ Happy coding!" )
397- .toConsole ();
393+ printSuccess ( " 🥊 Your ColdBox BoxLang application is ready to roll!" )
394+ variables
395+ .print
396+ .line ( " 👉 Run 'box server start' to launch the development server." )
397+ .line ( " 👉 Run 'box coldbox help' to see a list of available commands from the ColdBox CLI" )
398+ .line ( " ℹ️. You can remove the [Setup.bx] file from your project now or keep it for future reference." )
399+ .line ( " 🗳️ Happy coding!" )
400+ .toConsole ();
398401 }
399402
400403 /**
0 commit comments