Package | Description |
---|---|
org.springframework.shell |
Contains core classes for Spring Shell, irrespective of the way commands are actually implemented.
|
org.springframework.shell.command |
Modifier and Type | Method and Description |
---|---|
CommandOption |
CompletionContext.getCommandOption() |
Modifier and Type | Method and Description |
---|---|
CompletionContext |
CompletionContext.commandOption(CommandOption commandOption)
Return a copy of this context with given command option.
|
Constructor and Description |
---|
CompletionContext(List<String> words,
int wordIndex,
int position,
CommandRegistration commandRegistration,
CommandOption commandOption) |
Modifier and Type | Class and Description |
---|---|
static class |
CommandOption.DefaultCommandOption
Default implementation of
CommandOption . |
Modifier and Type | Method and Description |
---|---|
CommandOption |
CommandParser.OptionException.getOption() |
CommandOption |
CommandParser.MissingOptionException.getOption() |
static CommandOption |
CommandOption.of(String[] longNames,
Character[] shortNames,
String description)
Gets an instance of a default
CommandOption . |
static CommandOption |
CommandOption.of(String[] longNames,
Character[] shortNames,
String description,
org.springframework.core.ResolvableType type)
Gets an instance of a default
CommandOption . |
static CommandOption |
CommandOption.of(String[] longNames,
Character[] shortNames,
String description,
org.springframework.core.ResolvableType type,
boolean required,
String defaultValue,
Integer position,
Integer arityMin,
Integer arityMax,
String label,
CompletionResolver completion)
Gets an instance of a default
CommandOption . |
CommandOption |
CommandParser.CommandParserResult.option()
Gets the
CommandOption . |
CommandOption |
CommandParser.DefaultCommandParserResult.option() |
Modifier and Type | Method and Description |
---|---|
List<CommandOption> |
CommandRegistration.getOptions()
Gets an options.
|
List<CommandOption> |
CommandRegistration.DefaultCommandRegistration.getOptions() |
Modifier and Type | Method and Description |
---|---|
static CommandParser.CommandParserResult |
CommandParser.CommandParserResult.of(CommandOption option,
Object value)
Gets an instance of a default
CommandParser.CommandParserResult . |
static CommandParser.MissingOptionException |
CommandParser.MissingOptionException.of(String message,
CommandOption option) |
Modifier and Type | Method and Description |
---|---|
CommandParser.CommandParserResults |
CommandParser.parse(List<CommandOption> options,
String[] args)
Parse options with a given arguments.
|
CommandParser.CommandParserResults |
CommandParser.DefaultCommandParser.parse(List<CommandOption> options,
String[] args) |
Constructor and Description |
---|
MissingOptionException(String message,
CommandOption option) |
NotEnoughArgumentsOptionException(String message,
CommandOption option) |
OptionException(String message,
CommandOption option) |
TooManyArgumentsOptionException(String message,
CommandOption option) |
Copyright © 2024. All rights reserved.