Commit c51962f
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 ec50712 commit c51962f
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 | | |
| |||
386 | 385 | | |
387 | 386 | | |
388 | 387 | | |
389 | | - | |
390 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
391 | 397 | | |
392 | 398 | | |
393 | 399 | | |
| |||
430 | 436 | | |
431 | 437 | | |
432 | 438 | | |
433 | | - | |
434 | | - | |
435 | 439 | | |
436 | | - | |
| 440 | + | |
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
| 444 | + | |
| 445 | + | |
448 | 446 | | |
449 | 447 | | |
450 | 448 | | |
| |||
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
514 | | - | |
515 | | - | |
516 | 512 | | |
517 | 513 | | |
518 | 514 | | |
| |||
531 | 527 | | |
532 | 528 | | |
533 | 529 | | |
| 530 | + | |
534 | 531 | | |
535 | 532 | | |
536 | 533 | | |
| |||
0 commit comments