Skip to content
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

[RFC] kci-argparse: add kci PoC using argparse #2119

Closed
wants to merge 1 commit into from

Conversation

gctucker
Copy link
Contributor

Add a kci-argparse proof-of-concept replacement for kci using the standard argparse module. It comes with a sample
kernelci-argparse.toml settings file to illustrate how the values can be combined with the command line arguments.

This implementation isn't quite complete as nested commands can't really be implemented with argparse as easily as with Click or derivatives such as Typer. While it may be possible, this PoC is about comparing solutions and it's clear that using argparse would require a lot of addtional work to provide the same user experience as with Click.

Add a kci-argparse proof-of-concept replacement for kci using the
standard argparse module.  It comes with a sample
kernelci-argparse.toml settings file to illustrate how the values can
be combined with the command line arguments.

This implementation isn't quite complete as nested commands can't
really be implemented with argparse as easily as with Click or
derivatives such as Typer.  While it may be possible, this PoC is
about comparing solutions and it's clear that using argparse would
require a lot of addtional work to provide the same user experience as
with Click.

Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
@gctucker
Copy link
Contributor Author

gctucker commented Oct 6, 2023

Closing this RFC now as we've reached a consensus.

@gctucker gctucker closed this Oct 6, 2023
@gctucker gctucker deleted the kci-argparse branch October 6, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant