| Package | Description |
|---|---|
| org.springframework.shell.command |
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandContext.DefaultCommandContext
Default implementation of a
CommandContext. |
| Modifier and Type | Method and Description |
|---|---|
static CommandContext |
CommandContext.of(String[] args,
CommandParser.CommandParserResults results,
org.jline.terminal.Terminal terminal,
CommandRegistration commandRegistration)
Gets an instance of a default
CommandContext. |
| Modifier and Type | Method and Description |
|---|---|
Consumer<CommandContext> |
CommandRegistration.TargetInfo.getConsumer()
Get the consumer
|
Consumer<CommandContext> |
CommandRegistration.TargetInfo.DefaultTargetInfo.getConsumer() |
Function<CommandContext,?> |
CommandRegistration.TargetInfo.getFunction()
Get the function
|
Function<CommandContext,?> |
CommandRegistration.TargetInfo.DefaultTargetInfo.getFunction() |
| Modifier and Type | Method and Description |
|---|---|
CommandRegistration.TargetSpec |
CommandRegistration.TargetSpec.consumer(Consumer<CommandContext> consumer)
Register a consumer target.
|
CommandRegistration.TargetSpec |
CommandRegistration.DefaultTargetSpec.consumer(Consumer<CommandContext> consumer) |
CommandRegistration.TargetSpec |
CommandRegistration.TargetSpec.function(Function<CommandContext,?> function)
Register a function target.
|
CommandRegistration.TargetSpec |
CommandRegistration.DefaultTargetSpec.function(Function<CommandContext,?> function) |
static CommandRegistration.TargetInfo |
CommandRegistration.TargetInfo.of(Consumer<CommandContext> consumer) |
static CommandRegistration.TargetInfo |
CommandRegistration.TargetInfo.of(Function<CommandContext,?> function) |
| Constructor and Description |
|---|
DefaultTargetInfo(CommandRegistration.TargetInfo.TargetType targetType,
Object bean,
Method method,
Function<CommandContext,?> function,
Consumer<CommandContext> consumer) |
DefaultTargetInfo(CommandRegistration.TargetInfo.TargetType targetType,
Object bean,
Method method,
Function<CommandContext,?> function,
Consumer<CommandContext> consumer) |
Copyright © 2023. All rights reserved.