public interface Shell
Modifier and Type | Method and Description |
---|---|
void |
close() |
Object |
execute(CharSequence line) |
Object |
execute(CharSequence command,
Object[] args) |
Object |
execute(Object... args) |
Branding |
getBranding() |
History |
getHistory() |
IO |
getIo() |
Variables |
getVariables() |
boolean |
isInteractive()
Check if the shell can be run interactively.
|
boolean |
isOpened() |
void |
run(Object... args)
Run the shell interactively.
|
Branding getBranding()
IO getIo()
Variables getVariables()
History getHistory()
boolean isOpened()
void close()
Object execute(CharSequence line) throws Exception
Exception
Object execute(CharSequence command, Object[] args) throws Exception
Exception
boolean isInteractive()
void run(Object... args) throws Exception
args
- The initial commands to execute interactively.Exception
- Failed to execute commands.UnsupportedOperationException
- The shell does not support interactive execution.Copyright © 2008-2013 Sonatype. All Rights Reserved.