UNPKG

@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
const i=(r,t)=>{if(r.length===0)return;const a=r.map(e=>` [${e.level.toUpperCase()}] ${e.name}${e.message}${e.remediation}`),n=r.filter(e=>e.level==="error"),o=`${String(r.length)} platform ${r.length===1?"diagnostic":"diagnostics"}: ${a.join(` `)}`;if(n.length===0){t.warn(o);return}return t.error(o),n[0]?.message??"platform diagnostics reported an error"};export{i as a};