Skip to content

Commit

Permalink
More whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bjimz committed Apr 11, 2022
1 parent afe8d81 commit f803403
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class CLI {
this.mode = (this.verbose ? `Mode: ${chalk.blue('VERBOSE')} |`: '');

this.messages = {
onError : options.errorMessage || defaults.errorMessage,
onError: options.errorMessage || defaults.errorMessage,
onExit: options.exitMessage || defaults.exitMessage,
onRestart: options.restartMessage || defaults.restartMessage
};
Expand All @@ -43,11 +43,11 @@ export class CLI {
.bold(figlet.textSync(this.title, { font: this.font }).trimEnd());

this.log = {
verbose : (message) => this.verbose && console.info(chalk.blue('VERBOSE:'), message),
info : (message) => console.info(chalk.blue('INFO:'), message),
warning : (message) => console.warn(chalk.yellow('WARNING:'), message),
error : (message) => console.error(chalk.bgRed.black('ERROR:'), chalk.red(message || this.messages.onError)),
success : (message) => console.log(chalk.green('SUCCESS:'), message)
verbose: (message) => this.verbose && console.info(chalk.blue('VERBOSE:'), message),
info: (message) => console.info(chalk.blue('INFO:'), message),
warning: (message) => console.warn(chalk.yellow('WARNING:'), message),
error: (message) => console.error(chalk.bgRed.black('ERROR:'), chalk.red(message || this.messages.onError)),
success: (message) => console.log(chalk.green('SUCCESS:'), message)
};

this.print = {
Expand Down

0 comments on commit f803403

Please sign in to comment.