Philipp Muens c8639c678a Add argument support for CLI and plugins
Add the possibility to access arguments inside plugins (e.g. "--function function1" or "-f function").
Additionally the "lifeCycleEvent" property is renamed to "lifecycleEvent".
2016-05-23 15:17:22 +02:00

30 lines
557 B
JavaScript

'use strict';
class Tests {
constructor() {
this.commands = {
test: {
commands: {
integration: {
usage: 'Command for integration testing.',
lifecycleEvents: [
'logCommandsOnConsole',
],
},
},
},
};
this.hooks = {
'test:integration:logCommandsOnConsole': this.logCommandsOnConsole.bind(this),
};
}
logCommandsOnConsole() {
const output = this.commands;
console.log(JSON.stringify(output));
}
}
module.exports = Tests;