@@ -21,24 +21,6 @@ export const printHeader = title => {
2121 console . log ( ` ${ title } ` )
2222 printDivider ( )
2323}
24- export const replaceHeader = ( title , extraLines = 0 ) => {
25- // Move cursor up to rewrite the header (3 lines for header + any extra output lines)
26- const linesToMove = 3 + extraLines
27- process . stdout . write ( `\x1b[${ linesToMove } A` ) // Move up N lines
28- process . stdout . write ( '\x1b[K' ) // Clear top divider line
29- printDivider ( )
30- process . stdout . write ( '\x1b[K' ) // Clear title line
31- console . log ( ` ${ title } ` )
32- process . stdout . write ( '\x1b[K' ) // Clear old bottom divider
33- // Clear any extra lines from previous output
34- for ( let i = 0 ; i < extraLines ; i ++ ) {
35- process . stdout . write ( '\x1b[K\n' ) // Clear line and move to next
36- }
37- // Move cursor back up to position after the new header
38- if ( extraLines > 0 ) {
39- process . stdout . write ( `\x1b[${ extraLines } A` )
40- }
41- }
4224export const printFooterLine = ( ) => console . log ( '─' . repeat ( 55 ) )
4325export const printDottedLine = ( ) => console . log ( '·' . repeat ( 55 ) )
4426export const printDiamondLine = ( ) => console . log ( '◆' . repeat ( 55 ) )
@@ -48,7 +30,7 @@ export const printFooter = msg => {
4830 console . log ( colors . green ( msg ) )
4931 }
5032}
51- export const printHelpHeader = name => console . log ( `Socket Lib ${ name } ` )
33+ export const printHelpHeader = name => console . log ( `Socket Registry ${ name } ` )
5234export const printSuccess = msg => console . log ( colors . green ( `✓ ${ msg } ` ) )
5335export const printError = msg => console . error ( colors . red ( `✗ ${ msg } ` ) )
5436export const printWarning = msg => console . warn ( colors . yellow ( `⚠ ${ msg } ` ) )
0 commit comments