chaseruskin / legoHDL

An experimental package manager and development tool for Hardware Description Languages (HDL).
https://c-rus.github.io/legoHDL
MIT License
14 stars 2 forks source link

Add ability to specify version contraint range when printing available versions #49

Closed chaseruskin closed 2 years ago

chaseruskin commented 2 years ago

As a project evolves over time, many versions will remain with the project. If a developer wants to see only a specific subset or single version up for installation, they can do that by specifying a range with the info command.

example: legohdl info lab1 -vers=v1:v2

The delimiter will be the :. The first version is inclusive, and the second version is exclusive. When passing partial versions like above, they will be zero-extended to be v1.0.0 and v2.0.0, respectively. Omitting the delimiter and only passing one version -vers=v1.4.0 will only allow the list to return that singular version, if it exists.