- java.lang.Object
-
- org.jline.prompt.PromptCommands
-
public class PromptCommands extends java.lang.ObjectPrompt command implementations for JLine applications.This class provides command-line interfaces to the JLine prompt system, allowing prompts to be used from scripts and REPL consoles.
Available commands include:
- prompt - interactive prompts (list, checkbox, choice, input, confirm)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPromptCommands.ContextContext for command execution, providing I/O streams and current directory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprompt(PromptCommands.Context context, java.lang.Object[] argv)Object array version for compatibility.static voidprompt(PromptCommands.Context context, java.lang.String[] argv)Prompt command - create interactive prompts.
-
-
-
Method Detail
-
prompt
public static void prompt(PromptCommands.Context context, java.lang.String[] argv) throws java.lang.Exception
Prompt command - create interactive prompts.- Parameters:
context- the execution contextargv- command arguments- Throws:
java.lang.Exception- if the command fails
-
prompt
public static void prompt(PromptCommands.Context context, java.lang.Object[] argv) throws java.lang.Exception
Object array version for compatibility.- Throws:
java.lang.Exception
-
-