Skip to content

Add --json output option to CLI list commands #394

@fuleinist

Description

@fuleinist

Problem

CLI commands like list feeds and list entries output plain text, making it difficult to parse results in scripts or pipe to other tools.

Proposed Solution

Add a --json flag to the list subcommands that outputs structured JSON (one JSON object per line for easy streaming/processing).

Use Case

Users building automation scripts can easily parse feed/entry data with tools like jq or in any programming language. For example:

reader list feeds --json | jq '.url'
reader list entries --json | jq -r '"\(.feed_url) \(.title)"'

This would enable better integration with monitoring tools, custom dashboards, and CI/CD pipelines.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions