You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#1289. Not sure if relying on requests' internal CaseInsensitiveDict for this is the best idea here but I didn't want to reinvent the wheel. But it's needed since proper camelcase -> kebab-case conversions are not fully reversible (see https://stackoverflow.com/a/1176023)
Fixes the issue for:
CurrentUserGPGKey
LDAPGroup
UserGPGKey
nejch
changed the title
(proof of concept) fix(cli): fix parsing CLI objects to classnames
fix(cli): fix parsing CLI objects to classnames
Feb 22, 2021
What do you think about having an optional _arg_name attribute that could be put on classes. If that was present using that as the argument name, otherwise use the what_to_cls function.
What do you think about having an optional _arg_name attribute that could be put on classes. If that was present using that as the argument name, otherwise use the what_to_cls function.
What do you think about having an optional _arg_name attribute that could be put on classes. If that was present using that as the argument name, otherwise use the what_to_cls function.
I actually did this whole namespace lookup dance so that we wouldn't need to manually maintain another attribute in case people forget about it when adding new features 😅 but maybe your approach is clearer. I haven't looked at whether the current approach is problematic for typing. Either way I'll rebase and add some more tests. :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1289. Not sure if relying on requests' internal
CaseInsensitiveDictfor this is the best idea here but I didn't want to reinvent the wheel. But it's needed since proper camelcase -> kebab-case conversions are not fully reversible (see https://stackoverflow.com/a/1176023)Fixes the issue for:
CurrentUserGPGKey
LDAPGroup
UserGPGKey