Skip to content

cli: add --json output mode for scripting #5

Description

@Hollujay

Summary

fetch-metrics prints a human-readable block of parsed attestation values.
That is right for a person at a terminal, but it means anyone wiring this into
a cron job or CI has to parse formatted text.

Acceptance Criteria

  • Add a --json flag that emits the same parsed values as a single JSON
    object on stdout
  • Keep the existing human-readable output as the default — do not change
    current behaviour
  • Ensure nothing else (logs, warnings) is written to stdout in --json
    mode, so output stays pipeable
  • Test covering both output modes

Tech Stack

Rust, serde_json

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions