Skip to content

Implement new style for nested templates config#1981

Merged
ericof merged 7 commits intomainfrom
issue-1980-new-nested-format
Nov 20, 2023
Merged

Implement new style for nested templates config#1981
ericof merged 7 commits intomainfrom
issue-1980-new-nested-format

Conversation

@ericof
Copy link
Copy Markdown
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 jensens and kurtmckee 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
Copy Markdown
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
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.

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

@ericof
Copy link
Copy Markdown
Member Author

ericof commented Nov 20, 2023

The old format expects a list of strings.

@kurtmckee
Copy link
Copy Markdown
Member

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

@avramidis123
Copy link
Copy Markdown

Hello!
I would like to work on this issue.
Could you please assign it to me?
Thank you!

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

3 participants