Package nz.org.riskscape.engine.cli
Interface TerminalCommand
public interface TerminalCommand
A command that wants access to a Terminal
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Convenience console error printing method, SeeString.format(String, Object...)
default void
Convenience console error printing method, SeeString.format(String, Object...)
void
setMessages
(Messages messages) void
setTerminal
(Terminal terminal) Set the terminal for the command to use.default PrintStream
stderr()
default InputStream
stdin()
default PrintStream
stdout()
-
Method Details
-
setTerminal
Set the terminal for the command to use. Will be set before any execution method is called.
-
getTerminal
Terminal getTerminal() -
setMessages
-
getMessages
Messages getMessages() -
printerr
Convenience console error printing method, See
String.format(String, Object...)
-
print
Convenience console error printing method, See
String.format(String, Object...)
-
stdout
- Returns:
- application's stdout stream
-
stderr
- Returns:
- application's stderr stream
-
stdin
-