[PR #7] [CLOSED] Add --sort flag to apps and builds commands #222

Closed
opened 2026-02-26 21:34:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/7
Author: @rudrankriyam
Created: 1/20/2026
Status: Closed

Base: mainHead: feature/apps-builds-sort


📝 Commits (1)

  • 5fb5721 Add --sort flag to apps and builds commands

📊 Changes

3 files changed (+58 additions, -2 deletions)

View changed files

📝 cmd/commands.go (+16 -0)
📝 internal/asc/client.go (+34 -2)
📝 internal/asc/client_test.go (+8 -0)

📄 Description

Summary

This PR adds --sort support to the apps and builds commands for sorting results by upload date.

Changes

  • cmd/commands.go: Added --sort flag to apps and builds commands with validation
  • internal/asc/client.go: Added sort field to query structs and WithAppsSort/WithBuildsSort options
  • internal/asc/client_test.go: Added unit tests for new sort functionality

Usage

# Sort apps by uploaded date (descending)
asc apps --sort -uploadedDate --json

# Sort builds by uploaded date (ascending)
asc builds --app "123456789" --sort uploadedDate --json

Test plan

  • All unit tests pass
  • Integration tests pass with real App Store Connect API

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/7 **Author:** [@rudrankriyam](https://github.com/rudrankriyam) **Created:** 1/20/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/apps-builds-sort` --- ### 📝 Commits (1) - [`5fb5721`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/5fb57213300d863fb9b260667501e73e5cf480b5) Add --sort flag to apps and builds commands ### 📊 Changes **3 files changed** (+58 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `cmd/commands.go` (+16 -0) 📝 `internal/asc/client.go` (+34 -2) 📝 `internal/asc/client_test.go` (+8 -0) </details> ### 📄 Description ## Summary This PR adds `--sort` support to the `apps` and `builds` commands for sorting results by upload date. ### Changes - **cmd/commands.go**: Added `--sort` flag to `apps` and `builds` commands with validation - **internal/asc/client.go**: Added `sort` field to query structs and `WithAppsSort`/`WithBuildsSort` options - **internal/asc/client_test.go**: Added unit tests for new sort functionality ### Usage ```bash # Sort apps by uploaded date (descending) asc apps --sort -uploadedDate --json # Sort builds by uploaded date (ascending) asc builds --app "123456789" --sort uploadedDate --json ``` ## Test plan - ✅ All unit tests pass - ✅ Integration tests pass with real App Store Connect API 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 21:34:11 +03:00
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#222
No description provided.