Commit 28cd343
cli: human-readable YAML-like output with --symbols flag
Replace pprint with a YAML-like formatter for ELFInfo output. Add
--symbols flag to include sorted exported and imported dynamic symbols.
None-valued fields and the marker field are omitted. Multiple entries
are separated by "---".
Example:
```
$ elfdeps /usr/lib64/libc.so.6
filename: /usr/lib64/libc.so.6
requires:
- ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
provides:
- libc.so.6(GLIBC_2.34)(64bit)
machine: EM_X86_64
is_dso: true
is_exec: false
soname: libc.so.6
```
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 342437a commit 28cd343
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
32 | 60 | | |
33 | 61 | | |
34 | 62 | | |
| |||
0 commit comments