feat(mason): allow packages that use MasonGenerator
to acess BrickVariableProperties
.
#1075
Labels
MasonGenerator
to acess BrickVariableProperties
.
#1075
Description
There is a way of generating files from bundled bricks. That evolves mostly by calling
MasonGenerator
'shooks.preGen
,hooks.postGen
andgenerate
methods.Example (extracted from here)
The problem with that approach is that it disregards the prompts, default values, value types, and allowed values specified in the
vars
property in thebrick.yaml
file.This issue requests an API that allows access to that property directly from a
MasonGeenrator
or subclass.One suggestion is to save a
BrickYaml
instance as property ofMasonGenerator
Requirements
MasonGeenrator
or subclass.Additional Context
This is a request that would make life at very_good_cli easier.
The text was updated successfully, but these errors were encountered: