From 939d86477f382d37bcf779450432c8c7645745e0 Mon Sep 17 00:00:00 2001 From: Ricardo Arturo Cabral Mejia Date: Tue, 8 Nov 2022 20:45:08 -0500 Subject: [PATCH] chore: add banner --- src/app/app.ts | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/app/app.ts b/src/app/app.ts index 09b1c55..7271d76 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -28,8 +28,24 @@ export class App implements IRunnable { } public run(): void { - debug('running %s version %s', packageJson.name, packageJson.version) - debug('supported NIPs: %o', packageJson.supportedNips) + console.log(` + ███▄ █ ▒█████ ██████ ▄▄▄█████▓ ██▀███ ▄▄▄█████▓ ██████ ██▀███ ▓█████ ██▓ ▄▄▄ ▓██ ██▓ + ██ ▀█ █▒██▒ ██▒▒██ ▒ ▓ ██▒ ▓▒▓██ ▒ ██▒ ▓ ██▒ ▓▒██ ▒ ▓██ ▒ ██▒▓█ ▀ ▓██▒ ▒████▄ ▒██ ██▒ +▓██ ▀█ ██▒██░ ██▒░ ▓██▄ ▒ ▓██░ ▒░▓██ ░▄█ ▒ ███ ▒ ▓██░ ▒░ ▓██▄ ███ ▓██ ░▄█ ▒▒███ ▒██░ ▒██ ▀█▄ ▒██ ██░ +▓██▒ ▐▌██▒██ ██░ ▒ ██▒░ ▓██▓ ░ ▒██▀▀█▄ ▒░ ░ ▓██▓ ░ ▒ ██▒ ▒░ ▒██▀▀█▄ ▒▓█ ▄ ▒██░ ░██▄▄▄▄██ ░ ▐██▓░ +▒██░ ▓██░ ████▓▒░▒██████▒▒ ▒██▒ ░ ░██▓ ▒██▒ ░ ▒██▒ ░▒██████▒▒ ░ ░██▓ ▒██▒░▒████▒░██████▒▓█ ▓██▒ ░ ██▒▓░ +░ ▒░ ▒ ▒░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░ ▒ ░░ ░ ▒▓ ░▒▓░ ▒ ░░ ▒ ▒▓▒ ▒ ░ ░ ▒▓ ░▒▓░░░ ▒░ ░░ ▒░▓ ░▒▒ ▓▒█░ ██▒▒▒ +░ ░░ ░ ▒░ ░ ▒ ▒░ ░ ░▒ ░ ░ ░ ░▒ ░ ▒░ ░ ░ ░▒ ░ ░ ░▒ ░ ▒░ ░ ░ ░░ ░ ▒ ░ ▒ ▒▒ ░▓██ ░▒░ + ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ▒ ▒ ▒ ░░ + ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ + ░ ░`) + const width = 114 + const logCentered = (input: string, width: number) => { + const start = (width >> 1) - (input.length >> 1) + console.log(' '.repeat(start), input) + } + logCentered(`v${packageJson.version} by Cameri`, width) + logCentered(`NIPs implemented: ${packageJson.supportedNips}`, width) const workerCount = this.settingsFactory().workers?.count || cpus().length @@ -37,6 +53,10 @@ export class App implements IRunnable { debug('starting worker') this.cluster.fork() } + + logCentered(`${workerCount} workers started`, 114) + + debug('settings: %O', this.settingsFactory()) } private onClusterMessage(source: Worker, message: Serializable) {