@qbyco/tjs-cli
Version:
TrafaletJS CLI Tool
33 lines (29 loc) • 468 B
JavaScript
/**
* @module lib/cli/Command/Repository
*/
class Repository {
/**
* @class Repository
* @constructor
*/
constructor () {
this.commands = [];
}
/**
* @method addCommand
* @param command
* @returns {Repository}
*/
addCommand (command) {
this.commands.push(command);
return this;
}
/**
* @method getCommands
* @returns {Array}
*/
getCommands() {
return this.commands;
}
}
module.exports = Repository;