ethersphere/swarm-cli

feat: show current depth when using `stamp ls`

significance opened this issue · 2 comments

The depth is omitted.

sig32 :: Code/swarm/swarm-random-chunk-upload-2 1 » swarm-cli stamp ls
Stamp ID: 6baf77521d56ad39e81c2ac62f8650e0bff2fc6dbea028b7fd58b8c80317ea57
Label: BOS test
Usage: 100%
TTL: 62 days 14 hours 14 minutes 32 seconds
Expires: 2022-11-08

Currently printed only with --verbose flag

I intend to keep it as-is to avoid printing an overwhelming amount of information when user has multiple stamps.

Normal:

Stamp ID: 288f993b26d3ec5976c346c2c7e8deb3d095ad38caed664e89ccaaa356c476eb
Usage: 100%
Capacity (immutable): 0 B remaining out of 512.00 MB
TTL: 22 weeks (2024-11-28)

Verbose:

Stamp ID: 288f993b26d3ec5976c346c2c7e8deb3d095ad38caed664e89ccaaa356c476eb
Usage: 100%
Capacity (immutable): 0 B remaining out of 512.00 MB
TTL: 22 weeks (2024-11-28)
Depth: 17
Bucket Depth: 16
Amount: 50000000000
Usable: true
Utilization: 2
Block Number: 33486266