On this page
[Groovy] Class Shell
- org.apache.groovy.groovysh.Shell
class Shell
extends Object
A simple shell for invoking commands from a command-line.
Field Summary
Properties Summary
Type | Name and description |
---|---|
IO |
io |
CommandRegistry |
registry |
Constructor Summary
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
Object |
execute(String line) |
|
Command |
findCommand(String line, List<String> parsedArgs)
|
|
boolean |
isExecutable(String line) |
|
Object |
leftShift(String line) this should probably be deprecated |
|
Command |
leftShift(Command command) |
|
Command |
register(Command command) |
Inherited Methods Summary
Field Detail
protected final Logger log
Property Detail
final IO io
final CommandRegistry registry
Constructor Detail
Shell(IO io)
Shell()
Method Detail
Object execute(String line)
Command findCommand(String line, List<String> parsedArgs)
- Parameters:
line
- the line to parseparsedArgs
- accumulate the rest of the line after the command
boolean isExecutable(String line)
Object leftShift(String line)
this should probably be deprecated
Command leftShift(Command command)
Command register(Command command)
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/apache/groovy/groovysh/Shell.html