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