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: more information from `feed print` #374

Closed significance closed 4 months ago

significance commented 2 years ago
root@sig-bee-main-02:~/bee# swarm-cli feed print -v --stamp 2c6ea071030ea672a5502472b0acdb70aafa18cb7eda1bf142b2948241122153 -i main
Looking up feed topic 0000000000000000000000000000000000000000000000000000000000000000...
Chunk Reference: d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f
Chunk Reference URL: http://localhost:1633/bzz/d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f/
Feed Index: 0000000000000005
Next Index: 0000000000000006
Feed Manifest: 99b471e54c25c5fa51bb698be28d04ebe0313fb5ca7dbb946da01e4dea141e15
Feed Manifest URL: http://localhost:1633/bzz/99b471e54c25c5fa51bb698be28d04ebe0313fb5ca7dbb946da01e4dea141e15/
Number of Updates: 6

it would be great to also see the detail of all the updates...

root@sig-bee-main-02:~/bee# swarm-cli feed print -v --stamp 2c6ea071030ea672a5502472b0acdb70aafa18cb7eda1bf142b2948241122153 -i main
Looking up feed topic 0000000000000000000000000000000000000000000000000000000000000000...

Number of Updates: 6

Feed Index: 0000000000000001
Chunk Reference: d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f
Chunk Reference URL: http://localhost:1633/bzz/d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f/
Feed Index: 0000000000000002
Chunk Reference: d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f
Chunk Reference URL: http://localhost:1633/bzz/d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f/
Feed Index: 0000000000000003
Chunk Reference: d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f
Chunk Reference URL: http://localhost:1633/bzz/d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f/
Feed Index: 0000000000000004
Chunk Reference: d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f
Chunk Reference URL: http://localhost:1633/bzz/d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f/
Feed Index: 0000000000000005
Chunk Reference: d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f
Chunk Reference URL: http://localhost:1633/bzz/d755aa1e5b2e059f7013dbdd6e1134fbc00976c5254c176a74ef24f1ce60f06f/
Next Index: 0000000000000006
Feed Manifest: 99b471e54c25c5fa51bb698be28d04ebe0313fb5ca7dbb946da01e4dea141e15
Feed Manifest URL: http://localhost:1633/bzz/99b471e54c25c5fa51bb698be28d04ebe0313fb5ca7dbb946da01e4dea141e15/
agazso commented 2 years ago

Good idea! I would not make this default because if you have more than 10 updates the output may occupy all the screen.

Maybe an --all option to print all updates would work.

Cafe137 commented 4 months ago

Duplicate of https://github.com/ethersphere/swarm-cli/issues/340