Package org.springframework.shell.result
Class CommandNotFoundResultHandler
java.lang.Object
org.springframework.shell.result.TerminalAwareResultHandler<CommandNotFound>
org.springframework.shell.result.CommandNotFoundResultHandler
- All Implemented Interfaces:
ResultHandler<CommandNotFound>
ResultHandler
for CommandNotFound
using
CommandNotFoundMessageProvider
to provide an error message.
Default internal provider simply provides message from a CommandNotFound
with a red color. Provider can be defined by providing a custom
CommandNotFoundMessageProvider
bean.-
Field Summary
Fields inherited from class org.springframework.shell.result.TerminalAwareResultHandler
terminal
-
Constructor Summary
ConstructorDescriptionCommandNotFoundResultHandler
(org.jline.terminal.Terminal terminal, org.springframework.beans.factory.ObjectProvider<CommandNotFoundMessageProvider> provider) -
Method Summary
Methods inherited from class org.springframework.shell.result.TerminalAwareResultHandler
handleResult
-
Constructor Details
-
CommandNotFoundResultHandler
public CommandNotFoundResultHandler(org.jline.terminal.Terminal terminal, org.springframework.beans.factory.ObjectProvider<CommandNotFoundMessageProvider> provider)
-
-
Method Details
-
doHandleResult
- Specified by:
doHandleResult
in classTerminalAwareResultHandler<CommandNotFound>
-