WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/nuxi/src/commands Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ export default defineCommand({
267267 downloadSpinner . stop ( `Downloaded ${ colors . cyan ( template . name ) } template` )
268268 }
269269 catch ( err ) {
270- downloadSpinner . stop ( 'Template download failed' , 1 )
270+ downloadSpinner . error ( 'Template download failed' )
271271 if ( process . env . DEBUG ) {
272272 throw err
273273 }
@@ -283,15 +283,15 @@ export default defineCommand({
283283 const nightlyChannelTag = ctx . args . nightly || 'latest'
284284
285285 if ( ! nightlyChannelTag ) {
286- nightlySpinner . stop ( 'Failed to get nightly channel tag' , 1 )
286+ nightlySpinner . error ( 'Failed to get nightly channel tag' )
287287 logger . error ( `Error getting nightly channel tag.` )
288288 process . exit ( 1 )
289289 }
290290
291291 const nightlyChannelVersion = response [ 'dist-tags' ] [ nightlyChannelTag ]
292292
293293 if ( ! nightlyChannelVersion ) {
294- nightlySpinner . stop ( 'Nightly version not found' , 1 )
294+ nightlySpinner . error ( 'Nightly version not found' )
295295 logger . error ( `Nightly channel version for tag ${ colors . cyan ( nightlyChannelTag ) } not found.` )
296296 process . exit ( 1 )
297297 }
@@ -516,7 +516,7 @@ export default defineCommand({
516516 titlePadding : 2 ,
517517 contentPadding : 2 ,
518518 rounded : true ,
519- includePrefix : false ,
519+ withGuide : false ,
520520 formatBorder : ( text : string ) => `${ themeColor + text } \x1B[0m` ,
521521 } )
522522
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ const command = defineCommand({
107107 titlePadding : 2 ,
108108 contentPadding : 2 ,
109109 rounded : true ,
110- includePrefix : true ,
110+ withGuide : true ,
111111 formatBorder : ( text : string ) => colors . yellow ( text ) ,
112112 } ,
113113 )
You can’t perform that action at this time.
0 commit comments