-
Notifications
You must be signed in to change notification settings - Fork 30
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
enhancement: add shell completions for molecule #509
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sebastian Yaghoubi <[email protected]>
e9c15f1
to
1ab069c
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.
Can you also add a test (pytest) that checks that auto completion works?
Signed-off-by: Sebastian Yaghoubi <[email protected]>
I went ahead and added a test for the completions as requested. It was my first foray into writing a I wasn't sure on the best approach for testing the completions, since I was thinking there might have to be some user input simulation to try to recreate tab completion. I ended up just checking if the completion function was available, however, this is an indirect test. It should be easy to include more completions to test for, in the event more are added in the future. But they would need to be in the form that is read by the |
- pydoclint-DOC502: Remove the Raise section in the docstring since it wasn't an explicit raise condition -pylint-W0621: Don't rename scopes Signed-off-by: Sebastian Yaghoubi <[email protected]>
Add shell completion for
molecule
, as it does not use flags that are picked up byargcomplete
. Includes tests for added completions and the ability to test future completion additions.