1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const mr_core_1 = require("@cirrusct/mr-core");
|
4 | const Build_1 = require("./handlers/Build");
|
5 | const Clean_1 = require("./handlers/Clean");
|
6 | const Start_1 = require("./handlers/Start");
|
7 | exports.createPackageBuilder = (commandName, args) => {
|
8 | const handlers = {
|
9 | build: Build_1.Build,
|
10 | clean: Clean_1.Clean,
|
11 | start: Start_1.Start,
|
12 | };
|
13 | if (!handlers[commandName]) {
|
14 | throw mr_core_1.createError(`createPackageBuilder failed: No handler for builder command '${commandName}'`);
|
15 | }
|
16 | return new handlers[commandName](args);
|
17 | };
|
18 |
|
\ | No newline at end of file |