UNPKG

@amplience/dc-cli

Version:
27 lines (26 loc) 740 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SchemaCleanStep = void 0; const archive_1 = require("../../content-type-schema/archive"); const clean_hub_step_1 = require("../model/clean-hub-step"); class SchemaCleanStep { getId() { return clean_hub_step_1.CleanHubStepId.Schema; } getName() { return 'Clean Content Type Schemas'; } async run(argv) { try { await (0, archive_1.handler)({ ...argv }); } catch (e) { argv.logFile.appendLine(`ERROR: Could not archive schemas. \n${e}`); return false; } return true; } } exports.SchemaCleanStep = SchemaCleanStep;