Add --version flag to the aggrete CLI - #6
Conversation
Print the installed package version via importlib.metadata and exit. Includes a small regression test.
|
Thanks for reviewing when you can — this is a first-time contribution to the repo, so Actions is waiting on Approve and run workflows for the PR checks to start. Locally: Happy to adjust if anything needs changing. |
|
Welcome, and thanks for the contribution. This is a clean, focused PR: it does exactly what #3 asked, nothing more, with a real test to back it. Nice touch importing One entirely optional note for the future, not a change I need here: CI is green and I am merging. Thanks again for jumping in, and it is great to have you here. If you are up for more, there are a few other good first issues open. |
Summary
Adds a
--versionflag to the aggrete CLI soaggrete --versionprints the installed package version and exits 0.Fixes #3
Changes
--versionon the argument parser inaggrete/proxy.py(main()/ CLI entry viacli())importlib.metadata.version("aggrete")and printaggrete <version>tests/test_version.pycovering the flagTest plan
aggrete --versionprints e.g.aggrete 0.5.2and exits 0pytest tests/test_version.pypassespytest)