Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 6 additions & 3 deletions src/ui/shared/printConfigStatus.ts
Original file line number Diff line number Diff line change
@@ -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)}`);
}

/**
Expand Down
Loading