All files / rw-lazy-installer/src/utils display.ts

0% Statements 0/8
0% Branches 0/1
0% Functions 0/1
0% Lines 0/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                                     
import chalk from 'chalk';
 
/**
 * Display utilities
 */
 
/**
 * Get the ASCII art header with version
 */
export function getHeader(version: string): string {
  return chalk.green.bold`
______ _    _   _                       _____          _        _ _
| ___ \\ |  | | | |                     |_   _|        | |      | | |
| |_/ / |  | | | |     __ _ _____   _    | | _ __  ___| |_ __ _| | | ___ _ __
|    /| |/\\| | | |    / _\` |_  / | | |   | || '_ \\/ __| __/ _\` | | |/ _ \\ '__|
| |\\ \\\\  /\\  / | |___| (_| |/ /| |_| |  _| || | | \\__ \\ || (_| | | |  __/ |
\\_| \\_|\\/  \\/  \\_____/\\__,_/___|\\__, |  \\___/_| |_|___/\\__\\__,_|_|_|\\___|_|
                                 __/ |
                                |___/                                  v${version}`.trim();
}
 
/**
 * Show the header
 */
export function showHeader(version: string): void {
  console.log(getHeader(version) + '\n');
}