Skip to content

Support for a ~/.cookiecutterrc and/or /path/to/proj/.cookiecutterrc #13

@audreyfeldroy

Description

@audreyfeldroy

Support for a ~/.cookiecutterrc and/or /path/to/proj/.cookiecutterrc

Inside, you'd be able to specify defaults for when a Cookiecutter template contains a particular context value.

For example, in my ~/.cookiecutterrc I might have something like:

[defaults]
full_name = Audrey Roy
email = audreyr@gmail.com
github_username = audreyr

[mappings]
fullName = full_name
githubUsername = github_username
github = github_username

ini seems to be the most common format for .rc files. Would it make sense to use this, or the more flexible json or yaml? Don't know. Are there any examples of tools which use non-ini .rc files?

What would even be in a project/.cookiecutterrc? Don't know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions