From 52cb85ef30a72f0513d5bd2caca1e21757e6bf32 Mon Sep 17 00:00:00 2001 From: Chrilleweb Date: Wed, 17 Dec 2025 22:50:34 +0100 Subject: [PATCH] Shortened config file path in CLI output to show only the filename. --- CHANGELOG.md | 1 + src/ui/shared/printConfigStatus.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61e6aec..e4145e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ This project follows [Keep a Changelog](https://keepachangelog.com/) and [Semant - Updated dependencies to latest versions. - Moved `healthScore` further down on the console output for better visibility of issues. +- Shortened config file path in CLI output to show only the filename. ### Fixed diff --git a/src/ui/shared/printConfigStatus.ts b/src/ui/shared/printConfigStatus.ts index 9ec0bcb..b86c32d 100644 --- a/src/ui/shared/printConfigStatus.ts +++ b/src/ui/shared/printConfigStatus.ts @@ -1,13 +1,16 @@ import chalk from 'chalk'; +import path from 'path'; /** * Prints message when dotenv-diff.config.json is successfully loaded. - * @param path Path to the config file + * @param filePath The path to the loaded config file * @returns void */ -export function printConfigLoaded(path: string): void { +export function printConfigLoaded(filePath: string): void { + const fileName = path.basename(filePath); + console.log(); - console.log(`${chalk.cyan('🧩 Loaded config:')} ${chalk.dim(path)}`); + console.log(`${chalk.cyan('🧩 Loaded config:')} ${chalk.dim(fileName)}`); } /**