mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #166] Audit: Minor code quality improvements #48
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#48
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 (Jan 25, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/166
Description
Group of minor code quality issues found during audit.
1. ANSI Escape Codes Cross-Platform Support
cmd/shared.go:20-23uses ANSI escape codes that may not work on all terminals (Windows cmd, some IDEs):Consider: Using a library like
github.com/mattn/go-colorfulfor cross-platform support.2. Retry Logging to stderr
internal/asc/client_core.go:204usesfmt.Fprintffor retry logging:Consider: Using a proper logging package (e.g.,
slogin Go 1.21+) instead offmt.Fprintffor better control and structured output.3. Config Timeout Fields as Strings
internal/config/config.go:28-35stores timeouts as strings:Consider: Using
time.Durationtype directly in the struct instead of storing as strings, though this requires JSON serialization changes.Severity
Low