Skip to content

Commit

Permalink
Docs: put the homepage URL in the CLI header (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Aug 2, 2023
1 parent ecd5d28 commit b2375c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/console/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export default class Logger {
const logoSplit = logo.split('\n');
const midLine = Math.min(Math.ceil(logoSplit.length / 2), logoSplit.length - 1);
const maxLineLen = logoSplit.reduce((max, line) => Math.max(max, line.length), 0);
logoSplit[midLine - 1] = `${logoSplit[midLine - 1].padEnd(maxLineLen, ' ')} ROM collection manager`;
logoSplit[midLine - 2] = `${logoSplit[midLine - 1].padEnd(maxLineLen, ' ')} ROM collection manager`;
logoSplit[midLine - 1] = `${logoSplit[midLine - 1].padEnd(maxLineLen, ' ')} ${Constants.HOMEPAGE}`;
logoSplit[midLine + 1] = `${logoSplit[midLine + 1].padEnd(maxLineLen, ' ')} v${Constants.COMMAND_VERSION}`;

this.print(LogLevel.ALWAYS, `${logoSplit.join('\n')}\n\n`);
Expand Down

0 comments on commit b2375c9

Please sign in to comment.