Skip to content

feat: add --format json flag to all read commands #7

@hanw39

Description

@hanw39

Context

BlogWatcher is intended to be used by AI agents via shell commands. Currently all output is human-readable colored text, which is fragile for programmatic parsing.

Proposed Change

Add --format json (short: -f json) flag to: articles, blogs, categories, stats (new).

Success output:

{ "data": [ ... ] }

Error output (to stdout, non-zero exit):

{ "error": "message" }

Default behavior (no flag) is unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions