@nswhp/golden-path
Version:
Generate all the recommended golden paths
20 lines (19 loc) • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GoldenPath = void 0;
const logger_util_1 = require("./utils/logger.util");
const golden_path_question_1 = require("./questions/golden-path.question");
const choice_1 = require("./models/choice");
const actions_1 = require("./actions");
async function GoldenPath() {
(0, logger_util_1.showTitleAndBanner)();
const goldenPathAnswer = await (0, golden_path_question_1.goldenPathQuestion)();
if (goldenPathAnswer.goldenPath === choice_1.GoldenPathValue.AWS_CDK) {
return await (0, actions_1.awsCdkActions)();
}
else if (goldenPathAnswer.goldenPath === choice_1.GoldenPathValue.ANGULAR) {
return await (0, actions_1.angularActions)();
}
process.exit(0);
}
exports.GoldenPath = GoldenPath;