Commit 8db610f
committed
feat!: remove JSON output format from diff command
BREAKING CHANGE: The --format flag has been removed from the diff command.
JSON output is no longer supported. The diff command now only outputs
human-readable text format.
This change simplifies the diff module by removing JSON marshaling logic,
format validation, and output routing complexity. Users who previously
used --format=json will need to parse the text output or use alternative
tools for structured data extraction.
Changes:
- Remove --format flag from diff command
- Remove JSON output capability from internal/diff module
- Remove Format field from diff.Options struct
- Remove toJSON() method and related JSON formatting code
- Rename diffWithConfig to diffSingleStack for consistency
- Update all tests to reflect simplified Options struct
- Update architecture documentation to reflect text-only output
This reduces codebase complexity by ~150 lines while maintaining all
core diff analysis capabilities with rich text formatting.1 parent b97d6ae commit 8db610f
File tree
9 files changed
+98
-426
lines changed- cmd
- docs/architecture
- internal
- deploy
- diff
9 files changed
+98
-426
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 49 | + | |
56 | 50 | | |
57 | 51 | | |
58 | 52 | | |
| |||
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
82 | | - | |
83 | | - | |
| 76 | + | |
| 77 | + | |
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
| |||
94 | 88 | | |
95 | 89 | | |
96 | 90 | | |
97 | | - | |
98 | 91 | | |
99 | 92 | | |
100 | 93 | | |
| |||
128 | 121 | | |
129 | 122 | | |
130 | 123 | | |
131 | | - | |
132 | | - | |
133 | 124 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 67 | | |
86 | 68 | | |
87 | 69 | | |
| |||
105 | 87 | | |
106 | 88 | | |
107 | 89 | | |
108 | | - | |
| 90 | + | |
109 | 91 | | |
110 | 92 | | |
111 | 93 | | |
| |||
116 | 98 | | |
117 | 99 | | |
118 | 100 | | |
119 | | - | |
| 101 | + | |
120 | 102 | | |
121 | 103 | | |
122 | 104 | | |
| |||
148 | 130 | | |
149 | 131 | | |
150 | 132 | | |
151 | | - | |
| 133 | + | |
152 | 134 | | |
153 | 135 | | |
154 | 136 | | |
| |||
158 | 140 | | |
159 | 141 | | |
160 | 142 | | |
161 | | - | |
| 143 | + | |
162 | 144 | | |
163 | 145 | | |
164 | 146 | | |
| |||
195 | 177 | | |
196 | 178 | | |
197 | 179 | | |
198 | | - | |
| 180 | + | |
199 | 181 | | |
200 | 182 | | |
201 | 183 | | |
| |||
205 | 187 | | |
206 | 188 | | |
207 | 189 | | |
208 | | - | |
| 190 | + | |
209 | 191 | | |
210 | 192 | | |
211 | 193 | | |
| |||
240 | 222 | | |
241 | 223 | | |
242 | 224 | | |
243 | | - | |
| 225 | + | |
244 | 226 | | |
245 | 227 | | |
246 | 228 | | |
| |||
257 | 239 | | |
258 | 240 | | |
259 | 241 | | |
260 | | - | |
261 | 242 | | |
262 | 243 | | |
263 | 244 | | |
264 | 245 | | |
265 | 246 | | |
266 | 247 | | |
267 | 248 | | |
268 | | - | |
269 | 249 | | |
270 | 250 | | |
271 | 251 | | |
272 | 252 | | |
273 | | - | |
274 | 253 | | |
275 | 254 | | |
276 | 255 | | |
277 | 256 | | |
278 | 257 | | |
279 | 258 | | |
280 | 259 | | |
281 | | - | |
282 | 260 | | |
283 | 261 | | |
284 | 262 | | |
285 | 263 | | |
286 | | - | |
287 | 264 | | |
288 | 265 | | |
289 | 266 | | |
290 | 267 | | |
291 | 268 | | |
292 | 269 | | |
293 | 270 | | |
294 | | - | |
295 | 271 | | |
296 | 272 | | |
297 | 273 | | |
298 | 274 | | |
299 | | - | |
300 | 275 | | |
301 | 276 | | |
302 | 277 | | |
303 | 278 | | |
304 | 279 | | |
305 | 280 | | |
306 | 281 | | |
307 | | - | |
308 | 282 | | |
309 | 283 | | |
310 | 284 | | |
311 | 285 | | |
312 | | - | |
313 | 286 | | |
314 | 287 | | |
315 | 288 | | |
| |||
394 | 367 | | |
395 | 368 | | |
396 | 369 | | |
397 | | - | |
398 | 370 | | |
399 | 371 | | |
400 | 372 | | |
| |||
0 commit comments