ethersphere / swarm-cli

Manage your Bee node and interact with the Swarm network via the CLI
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

feat: show current depth when using `stamp ls` #418

Closed significance closed 4 months ago

significance commented 2 years ago

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
Cafe137 commented 2 years ago

Currently printed only with --verbose flag

Cafe137 commented 4 months ago

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