Class PromptCommands


  • public class PromptCommands
    extends java.lang.Object
    Prompt 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 class  PromptCommands.Context
      Context for command execution, providing I/O streams and current directory.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void prompt​(PromptCommands.Context context, java.lang.Object[] argv)
      Object array version for compatibility.
      static void prompt​(PromptCommands.Context context, java.lang.String[] argv)
      Prompt command - create interactive prompts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 context
        argv - 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