Package org.jline.builtins
Class InteractiveCommandGroup
- java.lang.Object
-
- org.jline.builtins.InteractiveCommandGroup
-
- All Implemented Interfaces:
CommandGroup
public class InteractiveCommandGroup extends java.lang.Object implements CommandGroup
ACommandGroupthat wraps interactive builtins (nano,less,tmux,ttop) as shellCommands.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<Command>commands()Returns all commands in this group.java.lang.Stringname()Returns the name of this command group.-
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
-
-
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:CommandGroupReturns the name of this command group.The default implementation returns the simple class name.
- Specified by:
namein interfaceCommandGroup- Returns:
- the group name
-
commands
public java.util.Collection<Command> commands()
Description copied from interface:CommandGroupReturns all commands in this group.- Specified by:
commandsin interfaceCommandGroup- Returns:
- the collection of commands, never null
-
-