Skip to content

add --json flag for structured CLI output #4

@Giuseppe552

Description

@Giuseppe552

The CLI currently outputs JSON by default, but plugin progress logs go to stderr mixed with the output.

Goal: Add a `--json` flag that outputs structured NDJSON (one JSON object per event):
```
{"type":"plugin","id":"github","status":"done","nodes":3,"edges":2}
{"type":"plugin","id":"dns","status":"done","nodes":8,"edges":7}
{"type":"resolve","merged":1,"suggested":0}
{"type":"done","nodes":47,"edges":63}
```

This makes the CLI pipeable into monitoring tools and dashboards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions