| Package | Description |
|---|---|
| org.jboss.forge.shell | |
| org.jboss.forge.shell.command |
| Modifier and Type | Method and Description |
|---|---|
static PromptType |
PromptType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PromptType[] |
PromptType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ShellPrompt.promptCommon(String message,
PromptType type)
Prompt for user input, first printing the given message, then returning user input as a String.
|
String |
ShellPrompt.promptCommon(String message,
PromptType type,
String defaultIfEmpty)
Same as
ShellPrompt.promptCommon(String, PromptType), but will default to a given value if user input is empty. |
| Modifier and Type | Method and Description |
|---|---|
PromptType |
OptionMetadata.getPromptType()
Get the requested
PromptType for this option. |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.