tpagectl: output and 404 helpers duplicated across site and deployment #565
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#565
Loading…
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?
internal/tpagectl/deployment/list.gore-implements helpers already present ininternal/tpagectl/site:printTable/writeJSON/writeYAML+ the--formatdispatch switch are duplicated between thesiteanddeploymentpackagesSuggested fix: extract shared output rendering (table/json/yaml) and the
friendlyNotFoundhelper into a shared package (e.g.internal/tpagectl/output) used by both command groups.Ref: PR #564
Fixed in #635:
output.RenderFormatcentralizes the--formatdispatch (json/yaml/table + validation error) shared bysite list/site getanddeployment list/deployment get; the 404 mapping is centralized inclierr.NotFoundf. Type-specific row building stays local in each package'sprintTable.