-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework kernelci.cli
with Click framework
#2133
Conversation
b5ba6a4
to
a815fd7
Compare
a815fd7
to
70c689f
Compare
567f9a6
to
33bf479
Compare
33a51eb
to
c306094
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, works on staging (legacy, api, pipeline), i assume new functionality was tested by author
c306094
to
340b8cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nuclearcat It's rebased now so ready for review. You can test it manually with ./kci whoami
. It also comes with unit tests but that's run automatically by GitHub already.
Add click to the list of requirements with version 8.1.3 which is the same as in Debian stable (bookworm). This is to be used as the new framework for the kci command line tool. Link: https://lore.kernel.org/all/9acfa649-4ae0-2e56-16b8-b7c24ab60a30@collabora.com/ Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Rewrite the base kernelci.cli module using the Click framework rather than argparse. This provides a Kci base class for implementing commands that can load default values from TOML settings, and KciS with added secrets also loaded from TOML. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Add a tests/test_cli.py module to cover the new kernelci.cli implementation. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Rework the kci entry point to use the new kernelci.cli module and Click. Only implement `kci whoami` for now which can be used to check that TOML settings and secrets are loaded correctly. Also drop "kci config validate" from the Makefile tests for now as this needs to be reimplemented. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Thanks, works for me |
Rework the
kernelci.cli
module andkci
entry point using the Click framework.