diffuse
diffuse copied to clipboard
Align size output
arsc │ 682 B │ 674 B │ -8 B │ 576 B │ 564 B │ -12 B
manifest │ 535 B │ 535 B │ 0 B │ 1.1 KiB │ 1.1 KiB │ 0 B
We should append two spaces to B so that the numbers line up vertically.
But what if there are only B units in the column?
We could add a custom alignment strategy to picnic, perhaps.
https://github.com/JakeWharton/diffuse/pull/97
You could re-use picnic's table alignment rules? I only added to the info command in this PR.
$ ./build/libs/diffuse-test-binary.jar info ~/ws/playground/diffuse/test/app-debug.apk
app-debug.apk (signature: V1, V2)
APK │ compressed │ uncompressed
──────────┼────────────┼──────────────
dex │ 3.9 MiB │ 9.5 MiB
arsc │ 442.8 KiB │ 442.7 KiB
manifest │ 1.6 KiB │ 5.5 KiB
res │ 779.5 KiB │ 1.2 MiB
asset │ 0 B │ 0 B
other │ 127.5 KiB │ 243.3 KiB
──────────┼────────────┼──────────────
total │ 5.2 MiB │ 11.4 MiB
...