@lunora/cli
Version:
The Lunora CLI: init, dev, deploy, codegen, migrate, seed, doctor, insights, logs, registry, and the rest of the project commands
2 lines (1 loc) • 395 B
JavaScript
import{createLogger as s}from"./createLogger-BoSxdb2T.mjs";import{P as c,a}from"./prompt-cancelled-C8Sj7OqI.mjs";const p=t=>async r=>{const e=s();try{const{code:o}=await t({argument:r.argument,cwd:r.process.cwd,logger:e,options:r.options});r.process.exit(o)}catch(o){if(o instanceof c){r.process.exit(a);return}e.error(o instanceof Error?o.message:String(o)),r.process.exit(1)}};export{p as i};