iroh icon indicating copy to clipboard operation
iroh copied to clipboard

console/cli is missing listing the contents of a collection

Open divagant-martian opened this issue 1 year ago • 3 comments

the blobs::Client has pub async fn get_collection(&self, hash: Hash) -> Result<Collection> for which there is no matching counterpart in the cli/console.

The Collection type has a lot of manipulation methods we probably do not want to map. However, a blobs collection <hash> which lists the blobs (by calling pub fn iter(&self) -> impl Iterator<Item = &(String, Hash)>) I think is both useful enough, and close enough to the rust api to be a good match to this top level client function

divagant-martian avatar Aug 21 '24 17:08 divagant-martian

@divagant-martian, is this an issue I could take?

palozano avatar Sep 10 '24 09:09 palozano

@dignifiedquire @b5 do you guys think we should add this api to the cli? @palozano is already familiar with the cli code so this could be easy for him to do

divagant-martian avatar Sep 10 '24 09:09 divagant-martian

sounds good to me 👍

dignifiedquire avatar Sep 10 '24 10:09 dignifiedquire

Closing, as we have removed iroh-cli

dignifiedquire avatar Dec 10 '24 13:12 dignifiedquire