Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Inquirer function params #190

Merged
merged 3 commits into from Jan 8, 2021

Conversation

RobinKnipe
Copy link
Contributor

This PR addresses issue #189
Call the inquirer functions with the expected answers hash parameter.

...to better honour the `inquirer` function contract for `question.filter` and `question.validate`.
@crutchcorn
Copy link
Member

The code/tests look good here! Admittedly, though, I'm still not sure what this change means for consumers of node-plop. I'll likely merge either way, but want to make sure I fully understand the implications of the change

Ensure the `answers` object is also passed to the `filter` function.
Ensure the `answers` object is also passed to the `validate` function.
@RobinKnipe
Copy link
Contributor Author

Hi @crutchcorn - I think your reply was quicker than the circle-ci tests (which I've fixed)! I've also added a similar test to check the validate function receives the answers hash too. The inquirer function definitions can be found here FYR.

@crutchcorn crutchcorn merged commit 1c09ef3 into plopjs:master Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants