@jobgetapp/rush-enforce-categories-plugin
Version:
Utility to ensure rush projects to not leak internal code.
29 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnforceCategoriesCLI = void 0;
const ts_command_line_1 = require("@rushstack/ts-command-line");
const actions_1 = require("./actions");
/**
* Enforce categories command line utility.
*/
class EnforceCategoriesCLI extends ts_command_line_1.CommandLineParser {
/**
* Create new EnforceCategoriesCLI
* @param terminal - Service used to interact with host terminal.
*/
constructor(terminal, categoryEnforcerService) {
super({
toolFilename: 'enforce-categories',
toolDescription: 'Utility to ensure rush projects to not leak internal code.'
});
this.terminal = terminal;
this.categoryEnforcerService = categoryEnforcerService;
// Register actions
this.addAction(new actions_1.EnforceAction(terminal, categoryEnforcerService));
}
onDefineParameters() {
// Forced to provided this to satisfy abstract parent contract.
}
}
exports.EnforceCategoriesCLI = EnforceCategoriesCLI;
//# sourceMappingURL=cli.js.map