Uses of Interface
org.springframework.shell.command.CommandOption
Packages that use CommandOption
Package
Description
Contains core classes for Spring Shell, irrespective of the way commands are actually implemented.
-
Uses of CommandOption in org.springframework.shell
Methods in org.springframework.shell that return CommandOptionMethods in org.springframework.shell with parameters of type CommandOptionModifier and TypeMethodDescriptionCompletionContext.commandOption
(CommandOption commandOption) Return a copy of this context with given command option.Constructors in org.springframework.shell with parameters of type CommandOptionModifierConstructorDescriptionCompletionContext
(List<String> words, int wordIndex, int position, CommandRegistration commandRegistration, CommandOption commandOption) -
Uses of CommandOption in org.springframework.shell.command
Classes in org.springframework.shell.command that implement CommandOptionMethods in org.springframework.shell.command that return CommandOptionModifier and TypeMethodDescriptionstatic CommandOption
Gets an instance of a defaultCommandOption
.static CommandOption
CommandOption.of
(String[] longNames, Character[] shortNames, String description, org.springframework.core.ResolvableType type) Gets an instance of a defaultCommandOption
.static CommandOption
CommandOption.of
(String[] longNames, String[] longNamesModified, 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 defaultCommandOption
.CommandParser.CommandParserResult.option()
Gets theCommandOption
.CommandParser.DefaultCommandParserResult.option()
Methods in org.springframework.shell.command that return types with arguments of type CommandOptionModifier and TypeMethodDescriptionCommandRegistration.DefaultCommandRegistration.getOptions()
CommandRegistration.getOptions()
Gets an options.Methods in org.springframework.shell.command with parameters of type CommandOptionModifier and TypeMethodDescriptionCommandParser.CommandParserResult.of
(CommandOption option, Object value) Gets an instance of a defaultCommandParser.CommandParserResult
. -
Uses of CommandOption in org.springframework.shell.command.parser
Methods in org.springframework.shell.command.parser that return CommandOptionModifier and TypeMethodDescriptionParser.ParseResult.OptionResult.option()
Returns the value of theoption
record component.Methods in org.springframework.shell.command.parser with parameters of type CommandOptionModifier and TypeMethodDescriptionParser.ParseResult.OptionResult.of
(CommandOption option, Object value) Constructors in org.springframework.shell.command.parser with parameters of type CommandOptionModifierConstructorDescriptionOptionResult
(CommandOption option, Object value) Creates an instance of aOptionResult
record class.