Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add example of using middleware with choices #1813

Merged
merged 2 commits into from Nov 22, 2020
Merged

docs: add example of using middleware with choices #1813

merged 2 commits into from Nov 22, 2020

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Nov 22, 2020

Middleware can be applied either before or after validation. When combined with a default command this allows you to perform a transformation after choices has already been enforced (as requested in #756)

Fixes #756

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

choices and coerce sequence
1 participant