-
Notifications
You must be signed in to change notification settings - Fork 0
feat: output json option #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds JSON output format support to the bundle list and ec2 status commands, enabling programmatic consumption of deployment status and bundle information. The default output format remains as "table" to maintain backward compatibility.
Key Changes
- Added
--outputflag tobundle listandec2 statuscommands with support for "table" (default) and "json" formats - Refactored output logic into reusable data structures with JSON serialization support
- Renamed
BundleInfotoActiveBundlefor better clarity in the bundler context
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| cmd/deployman/main.go | Added --output flag definitions for bundle list and ec2 status commands with enum validation |
| internal/deployer.go | Added JSON-serializable structs (ASGStatus, ELBStatus, TargetStatus, StatusOutput) and output format methods; updated ShowStatus signature to accept outputFormat parameter |
| internal/bundler.go | Added JSON-serializable structs (BundleListItem, BundleListOutput) and output format methods; renamed BundleInfo to ActiveBundle; updated ListBundles signature to accept outputFormat parameter |
| test/e2e_test.go | Updated ListBundles test call to include "table" output format parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.