felangel / felangel/mason

feat: support conditional prompting for variables

Open
#1,251 6 comments 5 reactions 0 assignees View on GitHub
customer:🦄 enhancement candidate feedback wanted
Dominant language
Dart
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

**Description**

As a mason user, I would sometimes like to prompt for variables conditionally depending on the previous answers.

Conditional prompting can be achieved directly through the `pre_gen.dart` hook. However, if the prompting logic is moved to the pre generation hook the `brick.yaml` will no longer need to declare the variables.

**Requirements**

- [ ] Support conditional prompting of variables whilst still declaring them

**Additional context**

- An effort like this one is likely to require a proper proposal document.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.