Skip to content

feat: add catalogs CLI commands#217

Open
jeff-schnitter wants to merge 2 commits into
mainfrom
jeff/cli-catalogs
Open

feat: add catalogs CLI commands#217
jeff-schnitter wants to merge 2 commits into
mainfrom
jeff/cli-catalogs

Conversation

@jeff-schnitter

Copy link
Copy Markdown
Collaborator

Summary

  • Adds catalogs subcommand with list, get, create, and delete commands for the /api/v1/catalogs public API
  • list supports auto-pagination (fetches all pages by default) and table/CSV output
  • create supports --mode UPSERT (default, create or replace) and --mode CREATE (fail if slug exists), mirroring the API's ?mode= query param
  • get and delete use --slug / -s (the API identifies catalogs by slug only, not by ID)
  • Also includes the concurrency fix for test-pr.yml to cancel stale in-progress test runs when a new commit is pushed

Test plan

  • test_catalogs_crud — full lifecycle: create, list, get, delete
  • test_catalogs_upsert_replaces_existing — default UPSERT mode replaces without error
  • test_catalogs_create_mode_fails_on_duplicate--mode CREATE returns exit code 1 on duplicate slug

🤖 Generated with Claude Code

jeff-schnitter and others added 2 commits July 6, 2026 12:55
Add list, get, create, and delete commands for the catalogs public API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeff-schnitter jeff-schnitter requested a review from Cantaley as a code owner July 6, 2026 19:58
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.

1 participant