@amplience/dc-cli
Version:
Dynamic Content CLI Tool
27 lines (26 loc) • 714 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TypeCleanStep = void 0;
const archive_1 = require("../../content-type/archive");
const clean_hub_step_1 = require("../model/clean-hub-step");
class TypeCleanStep {
getId() {
return clean_hub_step_1.CleanHubStepId.Type;
}
getName() {
return 'Clean Content Types';
}
async run(argv) {
try {
await (0, archive_1.handler)({
...argv
});
}
catch (e) {
argv.logFile.appendLine(`ERROR: Could not archive types. \n${e}`);
return false;
}
return true;
}
}
exports.TypeCleanStep = TypeCleanStep;