8000 Fixed #479 - Added support for dictionary data in configurations. by freakboy3742 · Pull Request #815 · cookiecutter/cookiecutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed #479 - Added support for dictionary data in configurations. #815

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

Merged
merged 2 commits into from
Oct 8, 2016

Conversation

freakboy3742
Copy link
Contributor

This adds the ability to specify arbitrarily deep data structures in your cookiecutter JSON file.

@codecov-io
Copy link
codecov-io commented Aug 31, 2016

Current coverage is 100% (diff: 100%)

Merging #815 into master will not change coverage

@@           master   #815   diff @@
====================================
  Files          15     15          
  Lines         605    630    +25   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
+ Hits          605    630    +25   
  Misses          0      0          
  Partials        0      0          

Sunburst

Powered by Codecov. Last update 4547940...495f0bc

@@ -0,0 +1,63 @@
.. _dict-variables:

Dictionary Variables (1.1+)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature would be part of cookiecutter v1.5.

@hackebrot
Copy link
Member

Hi @freakboy3742! 👋

Thank you for submitting this PR. I had a brief glance at the changes and they look good to me. I left one comment for the docs addition.

Hope I get to review this more thoroughly soon.

Thanks again 🙇

@hackebrot hackebrot added enhancement This issue/PR relates to a feature request. needs-review PR Only: This PR require review from other developer labels Sep 5, 2016
@freakboy3742
Copy link
Contributor Author

@hackebrot Thanks for that - I've just updated the documentation as requested.

@pydanny
Copy link
Member
pydanny commented Oct 7, 2016

I like this particular API change, it's very close to what I've thought would be a great way to extend the API, albeit in a way that will force people to upgrade. The code is very clean too.

That said, does it make sense to possibly flag some keys for special behavior? Not in this particular pull request, but in a new one (or branch). For example, adding a dictionary that allows for better help specifications on the command-line (FWIW, this was a Guido Van Rossum request).

Anyway, this PR gets my 👍

@hackebrot hackebrot merged commit 495f0bc into cookiecutter:master Oct 8, 2016
@hackebrot
Copy link
Member

Great work @freakboy3742! Thank you 🙇

I fixed a few minor issues on the docs example with the JSON context and the jinja2 template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue/PR relates to a feature request. needs-review PR Only: This PR require review from other developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0