Skip to content

Conversation

@colinmoynes
Copy link
Collaborator

📄 Summary

Added new flag --output which accepts table, json and csv. table is default if not specified.

@colinmoynes colinmoynes self-assigned this Dec 16, 2025
Copilot AI review requested due to automatic review settings December 16, 2025 12:18
@colinmoynes colinmoynes merged commit b273905 into main Dec 16, 2025
1 check passed
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 a new --output flag to the Docker Multi-Arch Inspector tool, enabling users to export analysis results in three formats: table (default), json, and csv. The implementation maintains backward compatibility by defaulting to the existing table-based output while providing machine-readable alternatives for programmatic consumption and data analysis workflows.

Key Changes:

  • Added --output argument with choices for table, json, and csv formats
  • Implemented conditional rendering logic that suppresses Rich console output (ASCII art, progress bars, error messages) when using non-table formats
  • Created JSON output that flattens the hierarchical structure into a list of objects with an added image field
  • Implemented CSV output with predefined fieldnames and proper header row generation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants