From d1d9f2a37dcc7d97699e25fd92763ebb491c6118 Mon Sep 17 00:00:00 2001 From: Daniel Coker <36392491+danielcoker@users.noreply.github.com> Date: Wed, 6 Jan 2021 01:10:57 +0100 Subject: [PATCH] Remove ora spinner --- src/libs/display.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/libs/display.ts b/src/libs/display.ts index 58a8da3..0cb4bd4 100644 --- a/src/libs/display.ts +++ b/src/libs/display.ts @@ -1,11 +1,10 @@ import chalk from 'chalk'; -import ora from 'ora'; import readline from 'readline'; const brandColor = 'E4E4F1'; const withBrand = (str: string) => { - return chalk.hex(brandColor)(str); + return chalk.bold.hex(brandColor)(str); }; const withWarning = (str: string) => { @@ -24,17 +23,6 @@ const withX = (str: string) => { return `${chalk.red.bold('✕')} ${str}`; }; -const spinner = (str: string) => { - return ora({ - text: str, - color: 'blue', - spinner: { - interval: 120, - frames: ['-', '+', '-'], - }, - }); -}; - /** * * Logs a branded yellow message to stdout. @@ -124,7 +112,6 @@ export const log = { withCaret, withCheck, withX, - spinner, branded, clearLine, warning,