Class DefaultShellContext
java.lang.Object
org.springframework.shell.context.DefaultShellContext
- All Implemented Interfaces:
- ShellContext
Default implementation of a 
ShellContext.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets an interaction mode.booleanhasPty()Gets if shell has a properptyterminal.voidsetInteractionMode(InteractionMode interactionMode) Sets an interaction mode.
- 
Constructor Details- 
DefaultShellContextpublic DefaultShellContext()
- 
DefaultShellContextpublic DefaultShellContext(boolean pty) 
 
- 
- 
Method Details- 
getInteractionModeDescription copied from interface:ShellContextGets an interaction mode.- Specified by:
- getInteractionModein interface- ShellContext
- Returns:
- a current interaction mode
 
- 
setInteractionModeDescription copied from interface:ShellContextSets an interaction mode.- Specified by:
- setInteractionModein interface- ShellContext
- Parameters:
- interactionMode- the interaction mode
 
- 
hasPtypublic boolean hasPty()Description copied from interface:ShellContextGets if shell has a properptyterminal. Terminal don't haveptyin cases where output is piped into a file or terminal is run in an ci system where there is no real user interaction.- Specified by:
- hasPtyin interface- ShellContext
- Returns:
- trueif terminal has pty features
 
 
-