Skip to content

Conversation

@yyoda
Copy link
Contributor

@yyoda yyoda commented Dec 18, 2025

No description provided.

Copy link

Copilot AI left a 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 --output flag to bundle list and ec2 status commands with support for "table" (default) and "json" formats
  • Refactored output logic into reusable data structures with JSON serialization support
  • Renamed BundleInfo to ActiveBundle for 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.

Copy link

Copilot AI left a 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.

@yyoda yyoda marked this pull request as ready for review December 18, 2025 09:38
@yyoda yyoda merged commit c8a9f8f into main Dec 18, 2025
1 check passed
@yyoda yyoda deleted the feat/output-json-option branch December 18, 2025 09:38
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.

2 participants