ethpm / ethpm-cli

CLI tool for interacting with the ethPM ecosystem.
https://ethpm-cli.readthedocs.io/
MIT License
42 stars 12 forks source link

Boring "get a package's JSON" functionality. #73

Closed pipermerriam closed 4 years ago

pipermerriam commented 4 years ago

I think we're missing the simplest functionality that might be useful which is fetching the json document for a package given a URI that can be resolved to a package.

$ ethpm-cli get <SOME-URI>
{...<the-raw-json-document>}
$ ethpm-cli get <SOME-URI> --pretty
{
   <the-prettified-JSON-docement
}
$ ethpm-cli get <SOME_URI> --output some-file.json
<dumps the package json to the specified filename>