evaengine 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/engine.js +2 -2
package/package.json
CHANGED
package/src/engine.js
CHANGED
|
@@ -175,7 +175,7 @@ export default class EvaEngine {
|
|
|
175
175
|
|| !{}.hasOwnProperty.call(command, 'getDescription')) {
|
|
176
176
|
throw new RuntimeException('Command require getSpec and getDescription static method');
|
|
177
177
|
}
|
|
178
|
-
const { argv } = yargs(
|
|
178
|
+
const { argv } = yargs(process.argv.slice(2))
|
|
179
179
|
.command(commandName, command.getDescription(), Object.assign({
|
|
180
180
|
verbose: {
|
|
181
181
|
alias: 'v',
|
|
@@ -492,7 +492,7 @@ export default class EvaEngine {
|
|
|
492
492
|
if (!commandName) {
|
|
493
493
|
this.logger.info('Available commands:');
|
|
494
494
|
Object.entries(this.commands).forEach(([name, commandClass]) => {
|
|
495
|
-
this.logger.info(
|
|
495
|
+
this.logger.info(`- ${(`${name} `).padEnd(30, '-')} ${commandClass.getDescription()}`);
|
|
496
496
|
});
|
|
497
497
|
return;
|
|
498
498
|
}
|