Commit 5eba279
committed
feat: add JSON envelope wrapper for -J nested output
Emits {"lsof_version":"...","processes":[...]} around process
objects. Handles empty results and suppresses -F marker output
in JSON modes during repeat cycles.1 parent cf0b102 commit 5eba279
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
1390 | 1391 | | |
1391 | 1392 | | |
1392 | 1393 | | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1393 | 1398 | | |
1394 | 1399 | | |
1395 | 1400 | | |
| |||
1546 | 1551 | | |
1547 | 1552 | | |
1548 | 1553 | | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
1549 | 1559 | | |
1550 | 1560 | | |
1551 | 1561 | | |
| |||
1593 | 1603 | | |
1594 | 1604 | | |
1595 | 1605 | | |
1596 | | - | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
1597 | 1609 | | |
1598 | 1610 | | |
1599 | 1611 | | |
| |||
0 commit comments