fix: resolve TD-002, TD-013, TD-014 tech debt items#54
Merged
aru-amedeo merged 1 commit intomainfrom Apr 11, 2026
Merged
Conversation
- TD-002: nil-guard all LocationResponse.Value, Metadata.ID, and
Metadata.Name accesses in securitygroup, vpc, subnet, elasticip,
loadbalancer, containerregistry, and snapshot commands
- TD-013: add cobra.NoArgs to 28 create/list commands across 17 files
- TD-014: introduce cmd/constants.go (StateInCreation, DateLayout,
FilePermConfig, FilePermDirAll); replace all magic strings and
date format literals across 25+ files
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runhandlers converted toRunE;SilenceUsage: true;fmtAPIErrorhelper inroot.goLocationResponse,Metadata.ID,Metadata.Namein all list/create/update responsesreturn fmt.Errorf(...)instead of printing to stdoutRunEreturn pathsconfirmDelete()helper inroot.godetects non-interactive stdin before promptingnewCtx()helper inroot.goapplies 30-second timeout to all SDK callsgetContextFilePathreturns(string, error)instead of silently falling back to CWDLoadConfigandLoadContextArgs: cobra.NoArgsadded to allcreateandlistcommands that take no positional argumentscmd/constants.gocreated withStateInCreation,DateLayout,FilePermConfig,FilePermDirAll; all magic strings replacedFixes #31
Fixes #32
Fixes #33
Fixes #34
Fixes #35
Fixes #36
Fixes #37
Fixes #38
Fixes #43
Fixes #44