Commit 27529f9
refactor: extract helpers and split files for CLI update/config commands
Address review findings: extract compose functions to update_compose.go,
split updater_test.go into focused test files, extract helpers to bring
all functions under 50 lines (handleDeclinedCompose, downloadAndApplyCLI,
performRestart, isDevChannelMismatch, writeTempBinary, windowsPreReplace).
Add SecurePath guard to config get for consistency with config show.
Pre-reviewed by 4 agents, 11 findings addressed
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ef63517 commit 27529f9
7 files changed
Lines changed: 1099 additions & 1038 deletions
File tree
- cli
- cmd
- internal/selfupdate
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
| |||
0 commit comments