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
157 stars 12 forks source link

Add support for 'dir' param in hooks. Fix bug with var parsing. #153

Closed brikis98 closed 5 months ago

brikis98 commented 5 months ago

Description

This PR extracts two improvements from https://github.com/gruntwork-io/boilerplate/pull/125:

  1. Add support for a dir parameter in hooks for specifying the working directory.
  2. Fix a bug with --var parsing where it wasn't handling an = in the value correctly.

Since https://github.com/gruntwork-io/boilerplate/pull/125 is a hackday and not likely to merge soon, I moved these improvements into a separate PR so we can get them merged ASAP. Also, in this separate PR, I added automated tests for these improvements.

TODOs

Read the Gruntwork contribution guidelines.

Release Notes (draft)

Added / Removed / Updated [X].

Migration Guide

brikis98 commented 5 months ago

Thanks for the review! Merging now.