Skip to content

Commit 9835008

Browse files
committed
Merge branch 'main' into cmn/removeShowUsed
2 parents 26a23ce + b61f5ac commit 9835008

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ui/shared/printConfigStatus.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import chalk from 'chalk';
2+
import path from 'path';
23

34
/**
45
* Prints message when dotenv-diff.config.json is successfully loaded.
5-
* @param path Path to the config file
6+
* @param filePath The path to the loaded config file
67
* @returns void
78
*/
8-
export function printConfigLoaded(path: string): void {
9+
export function printConfigLoaded(filePath: string): void {
10+
const fileName = path.basename(filePath);
11+
912
console.log();
10-
console.log(`${chalk.cyan('🧩 Loaded config:')} ${chalk.dim(path)}`);
13+
console.log(`${chalk.cyan('🧩 Loaded config:')} ${chalk.dim(fileName)}`);
1114
}
1215

1316
/**

0 commit comments

Comments
 (0)