Open divagant-martian opened 2 months ago
@divagant-martian, is this an issue I could take?
@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
sounds good to me 👍
the
blobs::Client
haspub 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, ablobs collection <hash>
which lists the blobs (by callingpub 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