mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #444] Replace PrintTable/PrintMarkdown type switches with registry #125
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#125
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?
Originally created by @rudrankriyam on GitHub (Feb 8, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/444
Problem
PrintTableandPrintMarkdownininternal/asc/output_core.goare huge type switches.Proposed fix (step-by-step)
reflect.Type, storing{table, markdown}handlers, with aregisterOutputhelper that guards duplicates/nil handlers.output_core.goand emitsoutput_registry_generated.goregistrations (preserve wrapper logic in cases).PrintTableandPrintMarkdownwith registry lookups.Acceptance criteria
output_core.go.make testpasses.