yonaskolb / Genesis

Templating, scaffolding and generation tool
MIT License
193 stars 18 forks source link

Add the Action to Create Only Directories #8

Closed aomathwift closed 2 years ago

aomathwift commented 4 years ago

Motivation and Context

If you can create only empty directories, it will be easier for users to know where to create files. If the file is not needed, the directory will not be shared unless the file is created. Therefore, I greatly appreciate having this feature, which creates only empty directories.

Description

This PR enables you to create only directories by describing the path. No template is required.

files:
- path: "MyGroup/MyChild/"
aomathwift commented 4 years ago

@yonaskolb Hi, if there is information or implementation to add to this PR, I am glad if you could tell me.

yonaskolb commented 2 years ago

Hi @aomathwift. This seems fine if that's what you need. Could you add update the test cases though please, in both GeneratorTests for the generation and TemplateTests for parsing

aomathwift commented 2 years ago

@yonaskolb Thank you for your review. I updated and added the test cases in both GeneratorTests and TemplateTests. Please approve workflow runs on this PR from my public fork.

yonaskolb commented 2 years ago

Released in 0.6.0