Skip to content

Support a directory or multiple template file arguments. #41

Open
@chasinglogic

Description

I would love to add this to our terraform process since it would fill in the gaps in HCL, however passing it each file or adding a makefile to the project seems like overkill.

Yasha should support a directory or multiple files via bash globbing so that:

yasha .

Would find all j2 templates and render them. Any files found would have the rendered file in the same directory. As an example consider the following directory structure:

myproject/
    mydir/
          sometemplate.tf.j2

When yasha is run as above in the myproject directory it would result in a file sometemplate.tf at the following path ./mydir/sometemplate.tf

I'd be happy to submit a patch for this if this is something that would be accepted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions