The ocm get cv command can be used to detect and filter existing versions for a component, if the given specification omits
a version name. But because the component versions are completely read from the repository to provide additional information fr the output list, it is quite slow.
To just get a list of available versions a new ocm list cv is provided, which can be used just to detect available versions.
Also the yaml and json flavors just prvide the found versions and no further information. Therefore, the found versions must not be read from the repository and the list can be determined much faster.
Like for the getcommand a version is only read if a given specification involves a version name to check, whether the version exists.
The version constraint options from the getcommand are supported, also. Therefore, this command can be used
to detect available versions according to various constraints, for example the latest version.
What type of PR is this? (check all applicable)
[x] 🍕 Feature
[ ] 🐛 Bug Fix
[x] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[x] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert
Related Tickets & Documents
Screenshots
Added tests?
[ ] 👍 yes
[ ] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help
[ ] Separate ticket for tests # (issue/pr)
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Added to documentation?
[ ] 📜 README.md
[ ] 🙅 no documentation needed
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
The
ocm get cv
command can be used to detect and filter existing versions for a component, if the given specification omits a version name. But because the component versions are completely read from the repository to provide additional information fr the output list, it is quite slow.To just get a list of available versions a new
ocm list cv
is provided, which can be used just to detect available versions. Also the yaml and json flavors just prvide the found versions and no further information. Therefore, the found versions must not be read from the repository and the list can be determined much faster.Like for the
get
command a version is only read if a given specification involves a version name to check, whether the version exists.The version constraint options from the
get
command are supported, also. Therefore, this command can be used to detect available versions according to various constraints, for example the latest version.What type of PR is this? (check all applicable)
Related Tickets & Documents
Screenshots
Added tests?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Added to documentation?
Checklist: