Class InteractiveCommandGroup

java.lang.Object
org.jline.builtins.InteractiveCommandGroup
All Implemented Interfaces:
org.jline.shell.CommandGroup

public class InteractiveCommandGroup extends 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 Details

    • InteractiveCommandGroup

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

    • name

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

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