Skip to content

Add --output flag to support JSON and table formats #97

@Kavirubc

Description

@Kavirubc

Problem

Currently, the CLI only outputs in a default format. Users working with scripts or automation tools would benefit from structured JSON output, while interactive users might prefer a formatted table view.

Proposed Solution

Add an --output flag that accepts:

  • json - Machine-readable JSON format
  • table - Human-readable table format (default)
  • text - Plain text output

Example Usage

# JSON output for scripts
event-integrator-cli list --output json

# Table format for interactive use
event-integrator-cli list --output table

# Plain text for simple parsing
event-integrator-cli list --output text

Benefits

  • Better automation and CI/CD integration
  • Improved developer experience
  • Consistent with other modern CLI tools
  • Makes the tool more scriptable

Related

This would complement the existing CLI commands and make the tool more versatile for different use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions