Unbind the config_dict from cookiecutter(). Allow it to be passed as an argument.#100
Unbind the config_dict from cookiecutter(). Allow it to be passed as an argument.#100theladyjaye wants to merge 6 commits intocookiecutter:masterfrom
Conversation
…iecuter() function rather than impose the default user config. Note that main() still runs though get_user_config() but for the user that is composing cookiecutter in a larger python program, they can decide what the config_dict is when calling cookiecutter from within python.
|
Ahhh... this is sort of duplicating pull #75 and answering issue #12 My 2c on the difference between the 2 (#100 and #75) conceptually: #75 still runs though For example, they might be using Cookiecutter on the CLI normally which would mean they potentially have a #100 However must dupe a little bit of functionality found in |
|
+1 |
2 similar comments
|
+1 |
|
👍 |
This reverts commit 1887cb4.
|
👍 |
|
If I understand this correctly, this would allow me to overwrite the default_context both on the command line and using python with higher priority than what's set in cookiecutter.json: +1 |
cookiecutter/main.py
Outdated
|
@aventurella this needs tests please. |
cookiecutter/main.py
Outdated
|
🔔 @aventurella |
|
@michaeljoseph ya, I will get those tests in there, no problem. |
Remove improper doc string in cookiecutter.main.cookiecutter. Add unit test for cookiecutter.main.cookiecutter to test passing in a custom config_dict.
There was a problem hiding this comment.
I don't know what this means =)
|
Hi guys, this is a bit off topic, but we are in a hack camp in Argentina for the weekend, (#pycamp2014) talking about if we should fork this project. There are many importants PR like this one without any feedback from the core developers. here some rant What do you think ? |
|
👀 #260 |
…l-tiers-needs-to-be-slugified slugify CODEOWNERS.md at Tiers 2-4
Allow the initial
config_dictto be passed as an argument to thecookiecuter()function rather than impose the default user config from withincookiecutter().Note that
main()still runs thoughget_user_config()for the CLI aspect of Cookiecutter. For the user that is composing Cookiecutter in a larger python program, they can decide whatconfig_dictis when callingcookiecutter()from within python assuming they make it conform to the expected keys defined inconfig.DEFAULT_CONFIG