ipfs / ipget

Retrieve files over IPFS and save them locally.
MIT License
390 stars 54 forks source link

Usage as a library #90

Closed faddat closed 2 years ago

faddat commented 3 years ago

https://github.com/osmosis-labs/osmosis/pull/416

https://github.com/osmosis-labs/osmosis/blob/303ba00e14110e5e82c99841154743758411a89f/cmd/osmosisd/cmd/init.go#L70-L165

I want to use ipget to make our users lives easier-- or IPFS.

Some things:

osmosisd start

from

osmosisd init
wget -O ~/.osmosisd/genesisstate genisis
osmosisd start
welcome[bot] commented 3 years ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

faddat commented 3 years ago

Hey, so I hope to use this like

package main

// make a single-package import
import github.com/ipfs/ipget/get

genesis := "QmXRvBT3hgoXwwPqbK6a2sXUuArGM8wPyo1ybskyyUwUxs"

get(genesis, path)

Going to make the needed changes in a fork, is this a PR you folks would accept?

faddat commented 3 years ago

91

14

faddat commented 3 years ago

Here's what I am thinking:

remove other code from my fork Include an example app in my fork Rename the whole thing "get"

wdyt?

faddat commented 3 years ago

okie-dokie:

https://github.com/notional-labs/get

it's nothing much but will do the trick if looking to download CID's from go.