Skip to content

Add JSON output for the GPU and rule catalogs - #20

Open
cloudgpuapp wants to merge 1 commit into
layer8labs8:mainfrom
cloudgpuapp:feat/json-catalog-output
Open

cloudgpuapp wants to merge 1 commit into
layer8labs8:mainfrom
cloudgpuapp:feat/json-catalog-output

Conversation

@cloudgpuapp

Copy link
Copy Markdown

Summary

Add --format json to list-gpus and list-rules so scripts can read both catalogs without parsing display tables. GPU output includes every profile field, and rules expose their ID, severity, title, and description. Both lists are sorted by ID. The existing text output remains the default and is unchanged.

Closes #10.

Verification

  • Four new tests failed on the base and pass with this change. They cover both JSON schemas and ensure explicit text matches the original default.
  • Both installed CLI commands produced valid JSON: 15 profiles and 16 rules.
  • Profile validation, all 7,564 tests, the 132-case benchmark, and the static site build passed. No model or GPU required.

Codex assisted with the implementation, tests, and documentation.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --format json to list-gpus and list-rules

1 participant