Commit 89c6cdc
committed
cmd/cue: remove the need for embedpkg
Now that we have go:embed, use that directly.
The code becomes slightly more involved,
as we have to use a combination of ReadDir with path.Join and ReadFile,
but we're still deleting over a hundred lines of code.
I still think that this bit of code can be significantly improved,
but avoiding the unnecessary go:generate is a good first step.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Iab4e9bf8da4684763e4ebd783896bf181a44ba26
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/537941
Unity-Result: CUEcueckoo <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>1 parent 6634a00 commit 89c6cdc
File tree
3 files changed
+21
-118
lines changed- cmd/cue/cmd
- internal/cmd/embedpkg
3 files changed
+21
-118
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
288 | | - | |
| 289 | + | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
310 | | - | |
311 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
312 | 322 | | |
313 | 323 | | |
314 | 324 | | |
315 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
316 | 330 | | |
317 | | - | |
| 331 | + | |
318 | 332 | | |
319 | 333 | | |
320 | 334 | | |
| |||
326 | 340 | | |
327 | 341 | | |
328 | 342 | | |
329 | | - | |
| 343 | + | |
330 | 344 | | |
331 | | - | |
| 345 | + | |
332 | 346 | | |
333 | 347 | | |
334 | 348 | | |
335 | 349 | | |
336 | 350 | | |
337 | 351 | | |
338 | | - | |
| 352 | + | |
339 | 353 | | |
340 | 354 | | |
341 | 355 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments