class GroovyPosixContext
extends Context
Extends the JLine POSIX context with groovysh-specific working-directory tracking.
| Type | Name and description |
|---|---|
Path |
currentDirCurrent working directory exposed to groovysh POSIX commands. |
| Constructor and description |
|---|
GroovyPosixContext(InputStream inputStream, PrintStream out, PrintStream err, Path currentDir, Terminal terminal, Function<String, Object> variables)Creates a POSIX command context backed by groovysh state. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Path |
currentDir()Returns the current working directory used by POSIX commands. |
Current working directory exposed to groovysh POSIX commands.
Creates a POSIX command context backed by groovysh state.
inputStream - command input streamout - command standard output streamerr - command error output streamcurrentDir - current working directoryterminal - active terminalvariables - variable lookup functionReturns the current working directory used by POSIX commands.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.