ethpm / ethpm-cli

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

Support ethpm URIs without specified package versions #89

Open njgheorghita opened 4 years ago

njgheorghita commented 4 years ago

What was wrong?

The cli supports ethpm URIs like... ethpm://ens.packages.eth : specify only a registry ethpm://ens.packages.eth/package@1.0.0 : specify a package release on a registry ethpm://ens.packages.eth/package@1.0.0/deployments/Token: specify a certain asset within a package

From a UX point of view it would be nice to support ethpm://ens.packages.eth/package - rather than requiring a version to be specified.

Since ethpm does not enforce semver, if this kind of uri is used - then a list of all detected versions should be printed - giving the user the chance to choose what version they want to install/activate (similar to how this is handled in ethpm update).

How can it be fixed?