score-spec / score-compose

Reference implementation for docker-compose target platform support
https://docs.score.dev/docs/score-implementation/score-compose/
Apache License 2.0
446 stars 42 forks source link

feat: added check-version subcommand #164

Closed astromechza closed 3 months ago

astromechza commented 3 months ago

With the ongoing development of score-compose, new features and provisioners come and go. Often project makefiles or CI pipelines need to check that the installed version provides specific features that are relatively new. Other than this, there is no particular drive to update the score-compose binary on a system.

This PR, adds a check-version subcommand that can be used to quick quick without regex or anything too weird that the version is the one expected.

It supports partial semver as well as =, >=, and > constriants.