Skip to content

fix(redteam): add --output flag on prompt-sets get and properties values#211

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/fix/198-output-flag
May 28, 2026
Merged

fix(redteam): add --output flag on prompt-sets get and properties values#211
cdot65 merged 1 commit into
mainfrom
cdot65/fix/198-output-flag

Conversation

@cdot65

@cdot65 cdot65 commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • pnpm test — 656 tests pass; 7 new tests in tests/unit/cli/redteam-output-flag.spec.ts cover json + yaml + pretty for both renderers
  • pnpm build (tsc) — clean
  • pnpm lint — 0 errors (3 pre-existing warnings in tests/unit/scripts/walk.spec.ts)
  • pnpm docs:gen — regenerated docs/cli/redteam/prompt-sets.md and docs/cli/redteam/properties.md with new flag
  • pnpm docs:check — OK

Closes #198

@cdot65 cdot65 merged commit 4630242 into main May 28, 2026
5 checks passed
@cdot65 cdot65 deleted the cdot65/fix/198-output-flag branch May 28, 2026 01:07
cdot65 added a commit that referenced this pull request May 28, 2026
…lag (#201) (#214)

- renderTargetDetail expands nested objects (request_headers, request_json,
  response_json, plus background/metadata children) as indented JSON instead
  of "[object Object]"
- targets get gains --output <pretty|json|yaml> for parity with targets list
  and the prompt-sets get / properties values flags added in #211
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.

--output flag missing on redteam prompt-sets get and redteam properties values

1 participant