@oraclecc/dcu
Version:
Development tools for Oracle Commerce Cloud.
22 lines (17 loc) • 429 B
JavaScript
const logInfo = require("./logger").logInfo
/**
* List all the layouts on the system.
* @param pageLayouts
* @param detailed
*/
function listLayouts(pageLayouts, detailed) {
pageLayouts.forEach(pageLayout => {
// See if they want the lot.
if (detailed) {
logInfo(JSON.stringify(pageLayout, null, 2))
} else {
logInfo(pageLayout.layout.displayName)
}
})
}
exports.listLayouts = listLayouts