Skip to content

Default values can be passed as a dict#1924

Merged
ericof merged 4 commits intocookiecutter:mainfrom
matveyvarg:feature/config-as-a-dict
Nov 17, 2023
Merged

Default values can be passed as a dict#1924
ericof merged 4 commits intocookiecutter:mainfrom
matveyvarg:feature/config-as-a-dict

Conversation

@matveyvarg
Copy link
Copy Markdown
Contributor

I'm using cookiecutter programatically and generating some config values (replay_dir to be specific) dynamically. So, I need ability to pass it from the outside.
Maybe I'm wrong, but it seems like current version doesn't allow to do that. Creating config file time for every call of the cookiecutter sounds like an overhead to me.
Here's my small suggestion how this functionality can be added without introducing breaking changes into the API.

@matveyvarg matveyvarg marked this pull request as ready for review August 22, 2023 10:25
@ericof ericof added the enhancement This issue/PR relates to a feature request. label Nov 9, 2023
@ericof ericof self-requested a review November 9, 2023 18:56
Copy link
Copy Markdown
Member

@kurtmckee kurtmckee left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for including a test case!

Co-authored-by: Kurt McKee <contactme@kurtmckee.org>
Copy link
Copy Markdown
Member

@ericof ericof left a comment

Choose a reason for hiding this comment

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

LGTM

@ericof ericof merged commit 11c2c30 into cookiecutter:main Nov 17, 2023
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants