Skip to content

Conditionals for file creation #345

@nrinaudo

Description

@nrinaudo

The current version supports conditionals inside files, but not about files.
That is, I can include or exclude blocks of text depending on the truthiness of a value. I cannot, however, create files only if a certain value is truthy.

This would be hugely helpful in at least one case: the template I'm working on will support multiple deployment options (raw JAR, AWS, debian package...). Each method needs different files to be present in different paths.

Currently, I can either include everything and ask developers to manually delete what's irrelevant, or include nothing and point them to a repo that contains the right files.

Ideally, they'd just answer a question (use AWS? [YES/no]) and everything would be set up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions