8000 Implement new style for nested templates config by ericof · Pull Request #1981 · cookiecutter/cookiecutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement new style for nested templates config #1981

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 7 commits into from
Nov 20, 2023

Conversation

ericof
Copy link
Member
@ericof ericof commented Nov 17, 2023

Support for new format:

    {
        "templates": {
            "project-1": {
                "path": "./project-1",
                "title": "Project 1",
                "description": "A cookiecutter template for a project"
            },
            "package": {
                "path": "./package",
                "title": "Package",
                "description": "A cookiecutter template for a package"
            }
        }
    }

Closes #1980

@ericof ericof added the feature This issue/PR relates to major feature request. label Nov 17, 2023
@ericof ericof requested review from kurtmckee and jensens November 17, 2023 23:54
@github-actions github-actions bot added the documentation This issue/PR relates to or includes documentation. label Nov 17, 2023
@kurtmckee
Copy link
Member

Thanks for tagging me to review this! I hope the feedback is helpful. Have a great weekend!

@ericof ericof requested a review from kurtmckee November 19, 2023 23:21
Copy link
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.

One last follow-up question regarding whether a list or dict should be the default value.

@ericof
Copy link
Member Author
ericof commented Nov 20, 2023

The old format expects a list of strings.

@kurtmckee
Copy link
Member

Note: The Windows tests are failing due to the absolute paths tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This issue/PR relates to or includes documentation. feature This issue/PR relates to major feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested Config Files: New format for "template" key
2 participants
0