feat(version-manager): add side-effect-free version resolution
Merged
C1
2d ago+190+190+012345678901234567890123456789-17-17-01234567890123456789
Summary
- Add
version-manager resolve <versionTags...>to print the highest matching version. - Skip generator bootstrap and downloads for the resolver command.
- Keep configuration reads side-effect-free so
openapitools.jsonis not created or modified.
Testing
yarn lintyarn testyarn build- Manual check:
version-manager resolve latestprints7.26.0without creating a config file or JAR.
Fixes #1289
Summary by cubic
Adds a side-effect-free resolve subcommand to version-manager that prints the highest matching version, fixing #1289. Resolution now fails with a non-zero exit code when no version matches the given tags.
version-manager resolve <versionTags...>prints the first matching version and skips generator bootstrap, downloads, and config writes; unmatched tags print an error to stderr and exit non-zero.- The command is detected positionally, so opening flags like
--openapitoolsare skipped and it is not confused with pass-through arguments. ConfigServiceno longer creates or modifiesopenapitools.jsonwhen reading configuration—the file is only touched on writes.