UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

22 lines 1.31 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.displayPlans = void 0; const sortFileActionPlansByPaths_1 = require("../sortFileActionPlansByPaths"); const displayPlan_1 = require("./displayPlan"); const displayPlans = (_a) => __awaiter(void 0, [_a], void 0, function* ({ plans }) { const sortedPlans = (0, sortFileActionPlansByPaths_1.sortFileActionPlansByPaths)({ plans }); for (const plan of sortedPlans) { yield (0, displayPlan_1.displayPlan)({ plan }); // one at a time, sequentially } }); exports.displayPlans = displayPlans; //# sourceMappingURL=displayPlans.js.map