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

Adds requiredWhen and whenPrompted functionality. Closes #5560, #5636 #5638

Closed

Conversation

martinlingstuyl
Copy link
Contributor

@martinlingstuyl martinlingstuyl commented Nov 5, 2023

Closes #5560 and #5636
Adds requiredWhen and whenPrompted functionality.

This is a POC PR that focusses on solving two issues:

  • Custom option-based prompts
  • Optional required fields

Try it out by running the following:

m365 login --authType password

Don't forget to run npm install first

Example Picture
image

❗ This PR is stacked on top of my inquirer update-branch. I'll move it as soon as @Adam-it has merged that PR.
❗So if you check out the code you only need to pick the last commit!

@martinlingstuyl martinlingstuyl marked this pull request as draft November 5, 2023 14:52
@martinlingstuyl martinlingstuyl changed the title Option based prompts Adds requiredWhen and whenPrompted functionality. Closes #5560, #5636 Nov 5, 2023
@martinlingstuyl
Copy link
Contributor Author

Aborted because we're taking this in another direction.

@martinlingstuyl martinlingstuyl deleted the option-based-prompts branch November 9, 2023 07:07
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.

Enhancement: Extend or override prompt behavior on options.
1 participant