Skip to content

Add --format json to list and verify for scripting #3

@vortacity

Description

@vortacity

Problem

anglerfish list and anglerfish verify render only a Rich table to the console (src/anglerfish/cli/deploy.py, _run_list). There is no machine-readable output, so scripted reporting, fleet inventory, and SOAR integration all require parsing terminal output.

Proposal

Add a --format json option (default table) to both subcommands. The deployment record dicts already exist in memory — this is serialization and an output branch, no new data plumbing.

Acceptance:

  • anglerfish list --format json --records-dir X emits a JSON array of records to stdout, nothing else (no banner/table).
  • anglerfish verify --format json ... emits per-record status objects; exit-code behavior unchanged.
  • Tests cover both, following the patterns in tests/test_cli_smoke.py.

See ROADMAP.md — "Machine-readable output".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions