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

Prompt with a Yes/No answer #18

Closed
end2endzone opened this issue May 21, 2019 · 0 comments
Closed

Prompt with a Yes/No answer #18

end2endzone opened this issue May 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@end2endzone
Copy link
Owner

The <prompt> action should be modified to support asking for a yes/no question.

Proposed solution:

<prompt name="myanswer" type="yesno" title="Do you want verbose output?" valueyes="/Verbose" valueno="" />

This should display a "Yes/No/Cancel" message box.
If the user select Cancel, the prompt action would fail.
If the user select Yes, the property myanswer should be set to value /Verbose
If the user select No, the property myanswer should be set to an empty string.

Typical usage of the YesNo prompt would be to use the property as an argument. For instance:

<exec path="${selection.path}" arguments="${myanswer}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant