-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Allow setting nested mapping types using the -S option
#2876
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
Conversation
|
Can I test this patch? |
|
What would be the syntax for setting a nested dict from the command line? Could you give an example? |
|
Something like |
3488a0e to
95a9cfd
Compare
The advantage is that we can automatically convert nested mappings, like for example the `extra_resources` attribute, which can thus be set from the command line.
95a9cfd to
5454737
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #2876 +/- ##
========================================
Coverage 87.35% 87.35%
========================================
Files 60 60
Lines 11676 11680 +4
========================================
+ Hits 10199 10203 +4
Misses 1477 1477
☔ View full report in Codecov by Sentry. |
|
Bump 🙂 |
vkarak
left a comment
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; I've done a couple of style fixes. We'd need also to update the docs of the -S option.
vkarak
left a comment
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.
I updated the docs; it's fine now.
json module-S option
|
Thank you! |
The advantage is that we can automatically convert nested mappings, like for example the
extra_resourcesattribute, which can thus be set from the command line.This is the kind of change I'd like to propose to fix #2868. If this is deemed acceptable, I'll add some tests.