Skip to content

fix: exit nonzero for invalid status filters#1603

Open
kiwigitops wants to merge 1 commit into
aws:mainfrom
kiwigitops:fix-status-invalid-type-exit
Open

fix: exit nonzero for invalid status filters#1603
kiwigitops wants to merge 1 commit into
aws:mainfrom
kiwigitops:fix-status-invalid-type-exit

Conversation

@kiwigitops

Copy link
Copy Markdown

Summary

  • set a non-zero exit code when agentcore status rejects an invalid --type filter
  • do the same for invalid --state filters
  • add command validation coverage for both cases

Fixes #984

Testing

  • vitest run --project unit src/cli/commands/status/__tests__/command.test.ts
  • prettier --check src/cli/commands/status/command.tsx src/cli/commands/status/__tests__/command.test.ts
  • git diff --check

@kiwigitops kiwigitops requested a review from a team June 22, 2026 05:38
@github-actions github-actions Bot added the size/s PR size: S label Jun 22, 2026
@kiwigitops kiwigitops changed the title Exit nonzero for invalid status filters fix: exit nonzero for invalid status filters Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

status --type with invalid type prints error but exits 0

1 participant