We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26a23ce + b61f5ac commit 9835008Copy full SHA for 9835008
src/ui/shared/printConfigStatus.ts
@@ -1,13 +1,16 @@
1
import chalk from 'chalk';
2
+import path from 'path';
3
4
/**
5
* Prints message when dotenv-diff.config.json is successfully loaded.
- * @param path Path to the config file
6
+ * @param filePath The path to the loaded config file
7
* @returns void
8
*/
-export function printConfigLoaded(path: string): void {
9
+export function printConfigLoaded(filePath: string): void {
10
+ const fileName = path.basename(filePath);
11
+
12
console.log();
- console.log(`${chalk.cyan('🧩 Loaded config:')} ${chalk.dim(path)}`);
13
+ console.log(`${chalk.cyan('🧩 Loaded config:')} ${chalk.dim(fileName)}`);
14
}
15
16
0 commit comments