Skip to content

Commit 2c0c221

Browse files
committed
feat: create commands.js
1 parent d22734c commit 2c0c221

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/utils/commands.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const arguments = require('./cli-flags');
2+
3+
const names = [];
4+
arguments.commands.forEach( command => {
5+
names.push(command.name);
6+
if (command.alias) names.push(command.alias);
7+
})
8+
9+
module.exports.names = names;
10+
module.exports.commands = arguments.commands;

0 commit comments

Comments
 (0)