UNPKG

@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
import{createLogger as n}from"./createLogger-hGafwf-3.mjs";import{P as t,a}from"./prompt-cancelled-C8Sj7OqI.mjs";const p=c=>async r=>{const s=n();try{const{code:e}=await c({argument:r.argument,cwd:r.process.cwd,logger:s,options:r.options});r.process.exit(e)}catch(e){if(e instanceof t){r.process.exit(a);return}s.error(e instanceof Error?e.message:String(e)),r.process.exit(1)}};export{p as d};