@@ -3,6 +3,7 @@ import chalk from "chalk";
33import clear from "clear" ;
44import colors from "colors" ;
55import fs from "node:fs" ;
6+ import cfonts from "cfonts" ;
67import inquirer from "inquirer" ;
78import PressToContinuePrompt from "inquirer-press-to-continue" ;
89import path from "node:path" ;
@@ -445,55 +446,24 @@ const printIntro = async () => {
445446 console . error ( `Fetch Error: ${ error } ` ) ;
446447 }
447448
448- const logo =
449- chalk . cyan ( `\n
450- ####################
451- ############################
452- ###################################
453- ########################################
454- ###########################################
455- ##############################################
456- ################################################
457- .#################################################
458- ##################################################
459- ##################################################
460- ` ) +
461- chalk . red ( `
462- 🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱
463- 🧱🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱
464- 🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱
465- 🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱
466- 🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱
467- 🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱
468- 🧱🧱🧱🧱 🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱
469-
470- \n` ) ;
471- process . stdout . write ( logo ) ;
472- process . stdout . write (
473- colors . rainbow (
474- "================================================================================\n"
475- )
476- ) ;
449+ cfonts . say ( "Moonwall" , {
450+ gradient : [ "#FF66FF" , "#9966FF" , "#99CCFF" , "#99FFFF" , "#33FFFF" , "#3366FF" ] ,
451+ transitionGradient : true ,
452+ lineHeight : 4 ,
453+ } ) ;
477454
478- if ( remoteVersion !== "unknown" && lt ( currentVersion , new SemVer ( remoteVersion ) ) ) {
479- process . stdout . write (
480- chalk . bgCyan . white (
481- ` MOONWALL V${ currentVersion . version } (New version ${ remoteVersion } available!) \n`
482- )
483- ) ;
484- } else {
485- process . stdout . write (
486- chalk . bgCyan . white (
487- ` MOONWALL V${ currentVersion . version } \n`
488- )
489- ) ;
490- }
455+ const versionText =
456+ remoteVersion !== "unknown" && lt ( currentVersion , new SemVer ( remoteVersion ) )
457+ ? `V${ currentVersion . version } (New version ${ remoteVersion } available!) ${ currentVersion . version } `
458+ : `V${ currentVersion . version } ` ;
491459
492- process . stdout . write (
493- colors . rainbow (
494- "================================================================================\n"
495- )
496- ) ;
460+ const dividerLength = 90 ;
461+ const leftPadding = Math . floor ( ( dividerLength - versionText . length ) / 2 ) ;
462+ const rightPadding = dividerLength - versionText . length - leftPadding ;
463+
464+ const formattedDivider = `${ colors . rainbow ( "=" . repeat ( leftPadding ) ) } ${ chalk . bgCyan . grey ( versionText ) } ${ colors . rainbow ( "=" . repeat ( rightPadding ) ) } \n` ;
465+
466+ console . log ( formattedDivider ) ;
497467} ;
498468
499469const getExtString = ( file : string ) => {
0 commit comments