@lunora/cli
Version:
The Lunora CLI: init, dev, deploy, codegen, migrate, seed, doctor, insights, logs, registry, and the rest of the project commands
5 lines (4 loc) • 392 B
JavaScript
const a=(e,t)=>{if(e.length===0)return;const l=e.map(r=>` [${r.level.toUpperCase()}] ${r.name} — ${r.message}
↳ ${r.remediation}`),n=e.filter(r=>r.level==="error"),o=`${String(e.length)} platform ${e.length===1?"diagnostic":"diagnostics"}:
${l.join(`
`)}`;if(n.length===0){t.warn(o);return}return t.error(o),n[0]?.message??"platform diagnostics reported an error"};export{a as r};