Commit cd89125
Christophe Guerreiro
spdx-diff: cli: Change output format to JSON and enfore JSON filename argument
Previously, the tool was printing human-readable text to stdout and generating a JSON file separately.
This change enforces the presence of an explicit argument used as the JSON output filename.
The console output is now also emitted in JSON format to ensure consistency and
to simplify integration with automated pipelines and tooling.
Signed-off-by: Christophe Guerreiro <christophe.guerreiro@non.se.com>1 parent 041a0c4 commit cd89125
1 file changed
Lines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
385 | | - | |
386 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
387 | 393 | | |
388 | 394 | | |
389 | 395 | | |
| |||
426 | 432 | | |
427 | 433 | | |
428 | 434 | | |
429 | | - | |
430 | | - | |
431 | 435 | | |
432 | | - | |
| 436 | + | |
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
| 440 | + | |
| 441 | + | |
444 | 442 | | |
445 | 443 | | |
446 | 444 | | |
| |||
507 | 505 | | |
508 | 506 | | |
509 | 507 | | |
510 | | - | |
511 | | - | |
512 | 508 | | |
513 | 509 | | |
514 | 510 | | |
| |||
527 | 523 | | |
528 | 524 | | |
529 | 525 | | |
| 526 | + | |
530 | 527 | | |
531 | 528 | | |
532 | 529 | | |
| |||
0 commit comments