Skip to content

Commit

Permalink
Remove ora spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcoker committed Jan 6, 2021
1 parent 500d235 commit d1d9f2a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/libs/display.ts
Original file line number Diff line number Diff line change
@@ -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) => {
Expand All @@ -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.
Expand Down Expand Up @@ -124,7 +112,6 @@ export const log = {
withCaret,
withCheck,
withX,
spinner,
branded,
clearLine,
warning,
Expand Down

0 comments on commit d1d9f2a

Please sign in to comment.