gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
Mozilla Public License 2.0
160 stars 12 forks source link

Add types to boilerplate #20

Closed brikis98 closed 7 years ago

brikis98 commented 7 years ago

This PR adds support for types to boilerplate. You can now declare variables as string, int, float, bool, list, map, or enum, both as a way to validate the values, and so that you can use the corresponding helpers in Go template syntax (e.g. such as using range with a list).

This is a major refactor. Along the way, I renamed the prompt parameter to description, since the actual prompt, after the UI update, is now always “Enter a value”.

brikis98 commented 7 years ago

@josh-padnick I'm going to merge this one in so I can add some follow-up work on top of it. Feedback welcome!