declapract
Version:
A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.
20 lines • 751 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.executePlan = void 0;
const plan_1 = require("../../domain.operations/commands/plan");
const executePlan = async (options) => {
const configPath = options.config.slice(0, 1) === '/'
? options.config
: `${process.cwd()}/${options.config}`;
await (0, plan_1.plan)({
usePracticesConfigPath: configPath,
filter: options.practice || options.file
? {
practiceNames: options.practice ? [options.practice] : undefined,
filePaths: options.file ? [options.file] : undefined,
}
: undefined,
});
};
exports.executePlan = executePlan;
//# sourceMappingURL=plan.js.map