feat(create-db): add JSON output support for regions command#77
feat(create-db): add JSON output support for regions command#77aidankmcalister merged 1 commit intomainfrom
Conversation
WalkthroughThe changes implement JSON output support for the regions CLI command through a new RegionsFlags schema with a --json option, updated handleRegions function to accept input parameters, and corresponding test coverage with documentation examples. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
✅ Preview CLIs & Workers are live! Test the CLIs locally under tag npx create-db@pr77
npx create-pg@pr77
npx create-postgres@pr77Worker URLs
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
claim-db-worker | f7530e8 | Commit Preview URL Branch Preview URL |
Feb 06 2026, 04:36 PM |
Summary
RegionsFlagsschema with--json(-j) supportregionscommand input through the router so help/docs include the flaghandleRegionsto print machine-readable JSON when--jsonis setTests
npx vitest run __tests__/flags.test.ts __tests__/cli.test.ts __tests__/create.test.ts -t "regions" --reporter=verboseDocs
create-db/README.mdwithregions --jsonusage and output exampleSummary by CodeRabbit
New Features
Documentation
Tests