[GH-ISSUE #443] Remove duplicated shared_wrappers.go re-exports #126

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

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

Problem

  • 56 internal/cli/**/shared_wrappers.go files re-export shared helpers.
  • Any change to helpers requires touching dozens of packages.

Proposed fix (step-by-step)

  1. Enumerate wrapper functions and their shared targets (e.g., DefaultUsageFunc, GetASCClient, ContextWithTimeout, PrintOutput, ValidateNextURL, ResolveAppID, SplitCSV).
  2. In each command package, replace local wrapper calls with shared.<Func> and add internal/cli/shared import.
  3. Remove all shared_wrappers.go files.
  4. Run make format, make lint, make test.
  5. Update any docs that still reference wrapper files (if applicable).

Acceptance criteria

  • No shared_wrappers.go files remain.
  • Packages call shared helpers directly.
  • Tests and lint pass.
Originally created by @rudrankriyam on GitHub (Feb 8, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/443 ## Problem - 56 `internal/cli/**/shared_wrappers.go` files re-export shared helpers. - Any change to helpers requires touching dozens of packages. ## Proposed fix (step-by-step) 1. Enumerate wrapper functions and their shared targets (e.g., `DefaultUsageFunc`, `GetASCClient`, `ContextWithTimeout`, `PrintOutput`, `ValidateNextURL`, `ResolveAppID`, `SplitCSV`). 2. In each command package, replace local wrapper calls with `shared.<Func>` and add `internal/cli/shared` import. 3. Remove all `shared_wrappers.go` files. 4. Run `make format`, `make lint`, `make test`. 5. Update any docs that still reference wrapper files (if applicable). ## Acceptance criteria - No `shared_wrappers.go` files remain. - Packages call shared helpers directly. - Tests and lint pass.
kerem closed this issue 2026-02-26 21:33:37 +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#126
No description provided.