Skip to content

Add --json flag to db project list and db project inspect (#62) - #66

Merged
TrivCodez merged 1 commit into
IN3PIRE:mainfrom
SankeerthNara:Add---json-flag-to-db-project-list
Jul 22, 2026
Merged

TrivCodez merged 1 commit into
IN3PIRE:mainfrom
SankeerthNara:Add---json-flag-to-db-project-list

Conversation

@SankeerthNara

Copy link
Copy Markdown
Contributor

Closes #62

Adds --json support to db project list and db project inspect, following the same pattern used by db branch inspect --json.

  • db project list --json outputs a JSON array of projects
  • db project inspect --json outputs a JSON object with project_id, branches, and endpoints
  • Verified locally via npm run build and manual testing (stubbed API responses, since org-scoped Neon accounts currently can't call listProjects/listBranches — separate pre-existing issue, not related to this change)

@TrivCodez TrivCodez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, consistent implementation following the existing --json pattern. JSON output shapes are sensible. One minor nit: the spinner isn't stopped before the JSON return in project list — not a blocker since it matches other commands, but worth cleaning up. Good to merge.

@TrivCodez
TrivCodez merged commit 7751fc0 into IN3PIRE:main Jul 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --json flag to db project list and db project inspect

2 participants