cf-cname-ctl
Version:
A compact command line tool to update your CloudFront distribution CNAMES with one easy command!
11 lines (8 loc) • 310 B
JavaScript
const SUPPORTED_OPERATIONS = ['add', 'remove'];
const validateOperation = operation => {
if (!SUPPORTED_OPERATIONS.includes(operation)) {
console.log(`\nUnsupported operation type: ${operation}\n\nSupported Operations: add, remove`);
process.exit(1);
}
};
module.exports = { validateOperation };