public class ConsoleToolkit extends Object
Constructor and Description |
---|
ConsoleToolkit(ConsoleProvider console) |
Modifier and Type | Method and Description |
---|---|
<T> T |
askFor(String label,
Validator<T> validator) |
<T> T |
askForPassword(String label,
Validator<T> validator) |
String |
menuItemAndValue(String label,
Object value) |
char |
readMenuChoice(String menuName) |
void |
showDefaultMenuItem(char key,
String label) |
void |
showMenuItem(char key,
String label) |
void |
showMenuItem(char key,
String label,
char defaultKey) |
public ConsoleToolkit(@Nonnull ConsoleProvider console)
public void showMenuItem(char key, String label)
public void showDefaultMenuItem(char key, String label)
public void showMenuItem(char key, String label, char defaultKey)
public char readMenuChoice(String menuName) throws IOException
IOException
public <T> T askForPassword(@Nonnull String label, @Nonnull Validator<T> validator) throws IOException
IOException
public <T> T askFor(@Nonnull String label, @Nonnull Validator<T> validator) throws IOException
IOException
Copyright © 2002-2022 Atlassian. All Rights Reserved.