diffuse icon indicating copy to clipboard operation
diffuse copied to clipboard

Align size output

Open JakeWharton opened this issue 5 years ago • 3 comments

     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.

JakeWharton avatar Aug 31 '20 02:08 JakeWharton

But what if there are only B units in the column?

We could add a custom alignment strategy to picnic, perhaps.

JakeWharton avatar Sep 01 '20 04:09 JakeWharton

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.

folecr avatar Sep 14 '20 16:09 folecr

$ ./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

...

folecr avatar Sep 14 '20 17:09 folecr