Class CommandContext.DefaultCommandContext
java.lang.Object
org.springframework.shell.command.CommandContext.DefaultCommandContext
- All Implemented Interfaces:
 CommandContext
- Enclosing interface:
 - CommandContext
 
Default implementation of a 
CommandContext.- 
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.command.CommandContext
CommandContext.DefaultCommandContext - 
Method Summary
Modifier and TypeMethodDescriptionGets a command registration.<T> TgetOptionValue(String name) Gets an mapped option value.Gets a command option parser results.String[]Gets a raw args passed into a currently executing command.org.jline.terminal.TerminalGets a terminal.booleanhasMappedOption(String name) Gets if option has been mapped. 
- 
Method Details
- 
getRawArgs
Description copied from interface:CommandContextGets a raw args passed into a currently executing command.- Specified by:
 getRawArgsin interfaceCommandContext- Returns:
 - raw command arguments
 
 - 
hasMappedOption
Description copied from interface:CommandContextGets if option has been mapped.- Specified by:
 hasMappedOptionin interfaceCommandContext- Parameters:
 name- the option name- Returns:
 - true if option has been mapped, false otherwise
 
 - 
getParserResults
Description copied from interface:CommandContextGets a command option parser results.- Specified by:
 getParserResultsin interfaceCommandContext- Returns:
 - the command option parser results
 
 - 
getCommandRegistration
Description copied from interface:CommandContextGets a command registration.- Specified by:
 getCommandRegistrationin interfaceCommandContext- Returns:
 - the command registration
 
 - 
getOptionValue
Description copied from interface:CommandContextGets an mapped option value.- Specified by:
 getOptionValuein interfaceCommandContext- Type Parameters:
 T- the type to map to- Parameters:
 name- the option name- Returns:
 - mapped value
 
 - 
getTerminal
public org.jline.terminal.Terminal getTerminal()Description copied from interface:CommandContextGets a terminal.- Specified by:
 getTerminalin interfaceCommandContext- Returns:
 - a terminal
 
 
 -