From 954643570c08f85d5c65d2cc10f2a10d49726b9a Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Sat, 1 Nov 2025 10:03:18 +0530 Subject: [PATCH] feat: print ascii art with current working dir --- src/cli.js | 10 ++++++++++ src/scanner.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/cli.js b/src/cli.js index d1a61c3..03ecb19 100644 --- a/src/cli.js +++ b/src/cli.js @@ -3,6 +3,7 @@ import { Command } from 'commander'; import path from 'path'; import scanner from './scanner.js'; +import chalk from 'chalk'; const program = new Command(); program @@ -14,6 +15,15 @@ program .option('--ci', 'CI mode: exit non-zero on findings and produce machine-friendly output') .parse(process.argv); +const logo = ` + +█▀▀ █▀█ █▀▄ █▀▀ █▀▀ █░█ ▄▀█ █▀█ █▀▄ █ ▄▀█ █▄░█ +█▄▄ █▄█ █▄▀ ██▄ █▄█ █▄█ █▀█ █▀▄ █▄▀ █ █▀█ █░▀█ + +`; + +console.log(chalk.magenta(logo)); + (async () => { const opts = program.opts(); const configPath = opts.config ? path.resolve(process.cwd(), opts.config) : null; diff --git a/src/scanner.js b/src/scanner.js index 02da010..ec010b8 100644 --- a/src/scanner.js +++ b/src/scanner.js @@ -117,7 +117,7 @@ async function run({ configPath = null, staged = false, verbose = false } = {}) // Print nice output if (findings.length === 0) { - console.log(chalk.green('No secrets found.')); + console.log(chalk.green('Scan successful but no secrets found in.', process.cwd())); } else { console.log(chalk.red(`Found ${findings.length} file(s) with potential secrets:`)); for (const f of findings) {