Class BasicPrompter
- java.lang.Object
-
- org.seedstack.maven.components.prompter.impl.BasicPrompter
-
- All Implemented Interfaces:
Prompter
@Component(role=Prompter.class, hint="basic") public class BasicPrompter extends Object implements Prompter
-
-
Constructor Summary
Constructors Constructor Description BasicPrompter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>promptCheckbox(String message, List<Value> values)StringpromptChoice(String message, List<Value> groups)booleanpromptConfirmation(String message, String defaultValue)StringpromptInput(String message, String defaultValue)StringpromptList(String message, List<Value> values, String defaultValue)
-
-
-
Method Detail
-
promptChoice
public String promptChoice(String message, List<Value> groups) throws PromptException
- Specified by:
promptChoicein interfacePrompter- Throws:
PromptException
-
promptList
public String promptList(String message, List<Value> values, String defaultValue) throws PromptException
- Specified by:
promptListin interfacePrompter- Throws:
PromptException
-
promptCheckbox
public Set<String> promptCheckbox(String message, List<Value> values) throws PromptException
- Specified by:
promptCheckboxin interfacePrompter- Throws:
PromptException
-
promptInput
public String promptInput(String message, String defaultValue) throws PromptException
- Specified by:
promptInputin interfacePrompter- Throws:
PromptException
-
promptConfirmation
public boolean promptConfirmation(String message, String defaultValue) throws PromptException
- Specified by:
promptConfirmationin interfacePrompter- Throws:
PromptException
-
-