2026-10-27 08:09:10 +08:00
|
|
|
import { formatCliError } from './operations/errors'
|
|
|
|
|
import { createProgram } from './program'
|
2026-06-21 12:35:12 +08:00
|
|
|
|
2026-10-27 08:09:10 +08:00
|
|
|
createProgram()
|
|
|
|
|
.parseAsync(process.argv)
|
|
|
|
|
.catch((err: unknown) => {
|
|
|
|
|
console.error(formatCliError(err))
|
2026-06-21 12:35:12 +08:00
|
|
|
process.exit(1)
|
2026-10-27 08:09:10 +08:00
|
|
|
})
|