Class InteractiveCommandGroup

  • All Implemented Interfaces:
    org.jline.shell.CommandGroup

    public class InteractiveCommandGroup
    extends java.lang.Object
    implements org.jline.shell.CommandGroup
    A CommandGroup that wraps interactive builtins (nano, less, tmux, ttop) as shell Commands.

    These commands require a terminal and are typically used in interactive sessions.

    Example:

     dispatcher.addGroup(new InteractiveCommandGroup());
     dispatcher.execute("nano file.txt");
     
    Since:
    4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      InteractiveCommandGroup()
      Creates a new InteractiveCommandGroup with all available interactive commands.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<org.jline.shell.Command> commands()  
      java.lang.String name()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jline.shell.CommandGroup

        command, hasCommand
    • Constructor Detail

      • InteractiveCommandGroup

        public InteractiveCommandGroup()
        Creates a new InteractiveCommandGroup with all available interactive commands.
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface org.jline.shell.CommandGroup
      • commands

        public java.util.Collection<org.jline.shell.Command> commands()
        Specified by:
        commands in interface org.jline.shell.CommandGroup