Skip to content

Template files/directories with customisable names #14273

Closed
@clarfonthey

Description

@clarfonthey

Description

Right now, template variables are only expanded within file contents. It would be nice to be able to also expand them inside file names. One potential use case for this is to create a $REPO_NAME directory for storing a template Python module with the same name as the repository.

One potential issue with directly allowing variables in file names is that this could potentially induce non-determinant behaviour depending on the order in which the files are renamed. We could simply error if renaming a file results in overwriting another file, however.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions