- java.lang.Object
-
- org.jline.builtins.PosixCommandGroup
-
- All Implemented Interfaces:
org.jline.shell.CommandGroup
public class PosixCommandGroup extends java.lang.Object implements org.jline.shell.CommandGroupACommandGroupthat wrapsPosixCommandsstatic methods as shellCommands.This provides a bridge between the builtins module's POSIX command implementations and the shell module's command API. Each command creates a
PosixCommands.Contextfrom the currentCommandSession.Special handling:
cd? usesCommandSession.setWorkingDirectory(Path)to update the session
Example:
dispatcher.addGroup(new PosixCommandGroup()); dispatcher.execute("echo hello"); dispatcher.execute("ls -la");- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description PosixCommandGroup()Creates a new PosixCommandGroup with all available POSIX commands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<org.jline.shell.Command>commands()java.lang.Stringname()
-