Class ConsoleUIPrompter
- java.lang.Object
-
- org.seedstack.maven.components.prompter.impl.ConsoleUIPrompter
-
- All Implemented Interfaces:
Prompter
@Component(role=Prompter.class, hint="fancy") public class ConsoleUIPrompter extends Object implements Prompter
-
-
Constructor Summary
Constructors Constructor Description ConsoleUIPrompter()
-
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> values)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> values) 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
-
-