Interface ShellContext
- All Known Implementing Classes:
DefaultShellContext
public interface ShellContext
Interface defining a contract for a context which allows to loosely connect
different components together and keep things alive between commands.
-
Method Summary
Modifier and TypeMethodDescriptionGets an interaction mode.boolean
hasPty()
Gets if shell has a properpty
terminal.void
setInteractionMode
(InteractionMode interactionMode) Sets an interaction mode.
-
Method Details
-
getInteractionMode
InteractionMode getInteractionMode()Gets an interaction mode.- Returns:
- a current interaction mode
-
setInteractionMode
Sets an interaction mode.- Parameters:
interactionMode
- the interaction mode
-
hasPty
boolean hasPty()Gets if shell has a properpty
terminal. Terminal don't havepty
in cases where output is piped into a file or terminal is run in an ci system where there is no real user interaction.- Returns:
true
if terminal has pty features
-