Skip to content

Commit 0d9e9ea

Browse files
committed
added command to retrieve config
1 parent 7f9fb77 commit 0d9e9ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cli.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ args.command(['unlink'], 'Removes the symlink for the current plugin.', () => {
4444
.catch(err => console.error(chalk.red(err)));
4545
});
4646

47+
args.command(['config'], 'Display the raw config.', () => api.getConfig()
48+
.then(data => {
49+
console.log(chalk.green(JSON.stringify(data, null, 2)));
50+
})
51+
.catch(err => console.error(chalk.red(err))));
52+
4753
const flags = args.parse(process.argv);
4854

4955
if (Object.keys(flags).length !== 0) {

0 commit comments

Comments
 (0)