Skip to content

Commit c5d6086

Browse files
committed
Feat: add which-config to the cli
1 parent 6a32f48 commit c5d6086

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env node
22

33
import updateNotifier from 'update-notifier';
4+
import chalk from 'chalk';
45
import yargs from 'yargs';
56

67
import pkg from '../package.json';
78
import cli from './cli';
89
import check from './check';
10+
import Config from './Config';
911

1012
const { argv } = yargs
1113
.usage('Usage: $0')
@@ -31,6 +33,11 @@ const { argv } = yargs
3133
},
3234
},
3335
check,
36+
)
37+
.command(
38+
'which-config',
39+
'Check which config got applied',
40+
() => console.log('Following config gets used:\n', chalk.bold(new Config().configPath)),
3441
);
3542

3643
updateNotifier({ pkg }).notify();

0 commit comments

Comments
 (0)