mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #534] [MERGED] Exit code parity #598
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#598
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/534
Author: @rudrankriyam
Created: 2/14/2026
Status: ✅ Merged
Merged: 2/14/2026
Merged by: @rudrankriyam
Base:
main← Head:cursor/exit-code-parity-c50a📝 Commits (5)
3954c79test: require usage-class validation errors9616241fix: map CLI validation failures to usage errors615e175test: stabilize auth usage parity exit-code case849464dtest: align cmdtest usage-validation expectationse686a32Merge remote-tracking branch 'origin/main' into cursor/exit-code-parity-c50a📊 Changes
12 files changed (+339 additions, -101 deletions)
View changed files
📝
internal/cli/apps/app_info.go(+10 -10)📝
internal/cli/auth/auth.go(+7 -7)📝
internal/cli/auth/auth_test.go(+56 -21)📝
internal/cli/cmdtest/commands_test.go(+104 -29)📝
internal/cli/cmdtest/exit_codes_test.go(+70 -0)📝
internal/cli/cmdtest/remaining_next_validation_phase63_test.go(+41 -5)📝
internal/cli/performance/performance_download.go(+6 -6)📝
internal/cli/publish/publish.go(+7 -7)📝
internal/cli/shared/errors.go(+22 -0)📝
internal/cli/submit/submit.go(+4 -4)📝
internal/cli/submit/submit_test.go(+6 -6)📝
internal/cli/xcodecloud/xcode_cloud.go(+6 -6)📄 Description
Summary
Standardizes CLI usage validation errors to consistently return exit code
2(viaflag.ErrHelp) for invalid command invocations. This includes:shared.UsageError/UsageErrorffor consistent error handling.submit,auth,app-info,performance,xcode-cloud, andpublishcommands to use these helpers for usage-related validation failures (e.g., conflicting flags, invalid values).submit_test.go,auth_test.go, andcmdtestto assert the new exit code2behavior.Validation
make formatmake lintmake test2for representative invalid invocations across affected commands.Wall of Apps (only if this PR adds/updates a Wall app)
docs/wall-of-apps.json(not the generated Wall block inREADME.mddirectly)make update-wall-of-appsdocs/wall-of-apps.jsonREADME.md🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.