#!/usr/bin/env node
import {a}from'./chunk-FYDRENK7.js';import'./chunk-XHJ27CER.js';import*as f from'path';import u from'chalk';async function l(n,t){let i=n?f.resolve(n):process.cwd(),e,r;t.from&&(e=new Date(t.from)),t.to&&(r=new Date(t.to));let m=new a(i),a$1=t.format||"json",o;a$1==="csv"?o=m.exportToCsv({from:e,to:r}):o=m.exportToJson({from:e,to:r}),t.output?((await import('fs')).writeFileSync(t.output,o),console.log(u.green(`\u2713 Exported to ${t.output}`))):console.log(o);}export{l as teamExportCommand};