[GH-ISSUE #402] Parity: Game Center enabled versions endpoints #116

Closed
opened 2026-02-26 21:33:31 +03:00 by kerem · 3 comments
Owner

Originally created by @rudrankriyam on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/402

Overview

Expose Game Center enabled versions endpoints in the CLI.

Scope (OpenAPI resources)

  • /v1/apps/{id}/gameCenterEnabledVersions
  • /v1/gameCenterEnabledVersions/{id}/compatibleVersions

Proposed CLI

  • asc game-center enabled-versions list --app \"APP_ID\"
  • asc game-center enabled-versions compatible-versions --id \"ENABLED_VERSION_ID\"

Examples:

  • asc game-center enabled-versions list --app \"APP_ID\"
  • asc game-center enabled-versions compatible-versions --id \"ENABLED_VERSION_ID\"

Flag patterns

Common: --app, --id, --output, --pretty, --limit, --next, --paginate

Output

  • JSON minified by default
  • --pretty for JSON
  • --output table/markdown for list commands

Detailed TODO

  • Add client methods in internal/asc for enabled versions list + compatible versions
  • Add enabled-versions command group under internal/cli/gamecenter
  • Add list + compatible-versions subcommands
  • Add HTTP client tests (mocked)
  • Add CLI cmdtests for flag validation + output

Acceptance criteria

  • Enabled versions list is accessible by app ID
  • Compatible versions list is accessible by enabled version ID

Tests

  • Flag validation tests
  • HTTP client tests for each endpoint

Implementation notes

  • Align flags with existing game-center list commands

References

  • docs/openapi/paths.txt
  • docs/openapi/latest.json

@cursor

Originally created by @rudrankriyam on GitHub (Feb 2, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/402 # Overview Expose Game Center enabled versions endpoints in the CLI. # Scope (OpenAPI resources) - `/v1/apps/{id}/gameCenterEnabledVersions` - `/v1/gameCenterEnabledVersions/{id}/compatibleVersions` # Proposed CLI - `asc game-center enabled-versions list --app \"APP_ID\"` - `asc game-center enabled-versions compatible-versions --id \"ENABLED_VERSION_ID\"` Examples: - `asc game-center enabled-versions list --app \"APP_ID\"` - `asc game-center enabled-versions compatible-versions --id \"ENABLED_VERSION_ID\"` # Flag patterns Common: `--app`, `--id`, `--output`, `--pretty`, `--limit`, `--next`, `--paginate` # Output - JSON minified by default - `--pretty` for JSON - `--output table/markdown` for list commands # Detailed TODO - [ ] Add client methods in `internal/asc` for enabled versions list + compatible versions - [ ] Add `enabled-versions` command group under `internal/cli/gamecenter` - [ ] Add list + compatible-versions subcommands - [ ] Add HTTP client tests (mocked) - [ ] Add CLI cmdtests for flag validation + output # Acceptance criteria - [ ] Enabled versions list is accessible by app ID - [ ] Compatible versions list is accessible by enabled version ID # Tests - Flag validation tests - HTTP client tests for each endpoint # Implementation notes - Align flags with existing game-center list commands # References - `docs/openapi/paths.txt` - `docs/openapi/latest.json` @cursor
kerem closed this issue 2026-02-26 21:33:32 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Feb 2, 2026):

@cursor implement this

<!-- gh-comment-id:3836616087 --> @rudrankriyam commented on GitHub (Feb 2, 2026): @cursor implement this
Author
Owner

@cursor[bot] commented on GitHub (Feb 2, 2026):

  • I added the new game-center enabled-versions command group with list and compatible-versions subcommands, including pagination/output validation logic and help examples, and wired it into the main Game Center command group.
// ... new enabled-versions command group, list/compatible-versions handlers ...
// ... help examples and subcommand registration ...
  • I added cmdtests covering required-flag validation, limit bounds, and output/pretty error cases for the new commands.
// ... enabled-versions validation/output cmdtests ...

Tests I ran:

  • make test
  • Manual: go run . game-center enabled-versions --help (shown in the video)

Walkthrough artifact:

  • game_center_enabled_versions_help/recording_demo.mp4

View PR
Open in Cursor Open in Web

<!-- gh-comment-id:3836616656 --> @cursor[bot] commented on GitHub (Feb 2, 2026): - I added the new `game-center enabled-versions` command group with `list` and `compatible-versions` subcommands, including pagination/output validation logic and help examples, and wired it into the main Game Center command group. ```15:229:internal/cli/gamecenter/game_center_enabled_versions.go // ... new enabled-versions command group, list/compatible-versions handlers ... ``` ```20:52:internal/cli/gamecenter/game_center.go // ... help examples and subcommand registration ... ``` - I added cmdtests covering required-flag validation, limit bounds, and output/pretty error cases for the new commands. ```12:120:internal/cli/cmdtest/game_center_enabled_versions_test.go // ... enabled-versions validation/output cmdtests ... ``` Tests I ran: - `make test` - Manual: `go run . game-center enabled-versions --help` (shown in the video) Walkthrough artifact: - `game_center_enabled_versions_help/recording_demo.mp4` <a href="https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/408"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/view-pr-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/view-pr-light.png"><img alt="View PR" width="86" height="28" src="https://cursor.com/assets/images/view-pr-light.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-d6c90de1-6fdc-4390-9544-f3520df444a2"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-d6c90de1-6fdc-4390-9544-f3520df444a2"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>
Author
Owner

@rudrankriyam commented on GitHub (Feb 2, 2026):

Completed in PR #408 (merged).

Added:

  • asc game-center enabled-versions list --app "APP_ID"
  • asc game-center enabled-versions compatible-versions --id "ENABLED_VERSION_ID"
<!-- gh-comment-id:3837449037 --> @rudrankriyam commented on GitHub (Feb 2, 2026): Completed in PR #408 (merged). Added: - `asc game-center enabled-versions list --app "APP_ID"` - `asc game-center enabled-versions compatible-versions --id "ENABLED_VERSION_ID"`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#116
No description provided.