Repository navigation
Commit 70ee1e2
refactor(compose): drop dead code (Down, v1 fallback, IsV2)
Cleanups surfaced during the self-containment review:
- Remove ComposeClient.Down() — never called from non-test code (only an
arg-builder test exercised it).
- Remove the Compose v1 (`docker-compose`) detection fallback in
NewComposeClient. Compose is v2-only by scope; v2 is required and the v1 path
was never taken (the parity matrix pins v2). --docker-compose-path is still
accepted (flag parity) and now only surfaces in the not-found error.
- Remove the write-only IsV2 field (set, never read).
- Drop the stale Config() comment about YAML output (it always requests --format
json).
The version-gated helpers (UsesNewProjectNames, SupportsAdditionalContexts,
ToProjectName) stay — they serve v2 sub-version differences and are used by
up/build/exec.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7cf85a4 commit 70ee1e2
2 files changed
Lines changed: 8 additions & 64 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| |||
283 | 282 | | |
284 | 283 | | |
285 | 284 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | 285 | | |
305 | 286 | | |
306 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
38 | | - | |
39 | 35 | | |
40 | | - | |
41 | 36 | | |
42 | 37 | | |
43 | | - | |
44 | | - | |
| 38 | + | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 43 | + | |
| 44 | + | |
60 | 45 | | |
61 | | - | |
62 | | - | |
| 46 | + | |
63 | 47 | | |
64 | 48 | | |
65 | 49 | | |
| |||
105 | 89 | | |
106 | 90 | | |
107 | 91 | | |
108 | | - | |
109 | | - | |
110 | 92 | | |
111 | 93 | | |
112 | 94 | | |
| |||
155 | 137 | | |
156 | 138 | | |
157 | 139 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 140 | | |
178 | 141 | | |
179 | 142 | | |
| |||
0 commit comments