Uses of Interface
org.springframework.shell.command.CommandRegistration
Packages that use CommandRegistration
Package
Description
Contains core classes for Spring Shell, irrespective of the way commands are actually implemented.
Contains strategies for dealing with results of commands.
-
Uses of CommandRegistration in org.springframework.shell
Methods in org.springframework.shell that return CommandRegistrationMethods in org.springframework.shell that return types with arguments of type CommandRegistrationModifier and TypeMethodDescriptionCommandNotFound.getRegistrations()
Gets command registrations known when this error was created.static Map<String,
CommandRegistration> Utils.removeHiddenCommands
(Map<String, CommandRegistration> registrations) Takes a map of command registrations and removes hidden commands from it.Methods in org.springframework.shell with parameters of type CommandRegistrationModifier and TypeMethodDescriptionCompletionContext.commandRegistration
(CommandRegistration commandRegistration) Return a copy of this context with given command registration.Method parameters in org.springframework.shell with type arguments of type CommandRegistrationModifier and TypeMethodDescriptionstatic Map<String,
CommandRegistration> Utils.removeHiddenCommands
(Map<String, CommandRegistration> registrations) Takes a map of command registrations and removes hidden commands from it.Constructors in org.springframework.shell with parameters of type CommandRegistrationModifierConstructorDescriptionCompletionContext
(List<String> words, int wordIndex, int position, CommandRegistration commandRegistration, CommandOption commandOption) Constructor parameters in org.springframework.shell with type arguments of type CommandRegistrationModifierConstructorDescriptionCommandNotFound
(List<String> words, Map<String, CommandRegistration> registrations, String text) -
Uses of CommandRegistration in org.springframework.shell.boot
Method parameters in org.springframework.shell.boot with type arguments of type CommandRegistrationModifier and TypeMethodDescriptionCommandCatalogAutoConfiguration.defaultCommandCatalogCustomizer
(org.springframework.beans.factory.ObjectProvider<CommandRegistration> commandRegistrations) -
Uses of CommandRegistration in org.springframework.shell.command
Classes in org.springframework.shell.command that implement CommandRegistrationMethods in org.springframework.shell.command that return CommandRegistrationModifier and TypeMethodDescriptionCommandRegistration.BaseBuilder.build()
CommandRegistration.Builder.build()
Builds aCommandRegistration
.CommandContext.DefaultCommandContext.getCommandRegistration()
CommandContext.getCommandRegistration()
Gets a command registration.CommandParser.CommandParserResults.registration()
Gets the registration.CommandParser.DefaultCommandParserResults.registration()
Methods in org.springframework.shell.command that return types with arguments of type CommandRegistrationModifier and TypeMethodDescriptionCommandCatalog.DefaultCommandCatalog.getRegistrations()
CommandCatalog.getRegistrations()
Gets allCommandRegistration
s mapped with their names.CommandResolver.resolve()
Resolve command registrations.Methods in org.springframework.shell.command with parameters of type CommandRegistrationModifier and TypeMethodDescriptionstatic CommandContext
CommandContext.of
(String[] args, CommandParser.CommandParserResults results, org.jline.terminal.Terminal terminal, CommandRegistration commandRegistration, ShellContext shellContext) Gets an instance of a defaultCommandContext
.CommandParser.CommandParserResults.of
(CommandRegistration registration, List<CommandParser.CommandParserResult> results, List<String> positional, List<CommandParser.CommandParserException> errors) Gets an instance of a defaultCommandParser.CommandParserResults
.void
CommandCatalog.DefaultCommandCatalog.register
(CommandRegistration... registration) void
CommandCatalog.register
(CommandRegistration... registration) Register aCommandRegistration
.void
CommandCatalog.DefaultCommandCatalog.unregister
(CommandRegistration... registration) void
CommandCatalog.unregister
(CommandRegistration... registration) Unregister aCommandRegistration
.Method parameters in org.springframework.shell.command with type arguments of type CommandRegistrationModifier and TypeMethodDescriptionstatic CommandParser
CommandParser.of
(org.springframework.core.convert.ConversionService conversionService, Map<String, CommandRegistration> registrations, ParserConfig config) Gets an instance of a default command parser.Constructor parameters in org.springframework.shell.command with type arguments of type CommandRegistrationModifierConstructorDescriptionAstCommandParser
(Map<String, CommandRegistration> registrations, ParserConfig configuration, org.springframework.core.convert.ConversionService conversionService) -
Uses of CommandRegistration in org.springframework.shell.command.parser
Methods in org.springframework.shell.command.parser that return CommandRegistrationModifier and TypeMethodDescriptionParser.ParseResult.commandRegistration()
Returns the value of thecommandRegistration
record component.Constructors in org.springframework.shell.command.parser with parameters of type CommandRegistrationModifierConstructorDescriptionParseResult
(CommandRegistration commandRegistration, List<Parser.ParseResult.OptionResult> optionResults, List<Parser.ParseResult.ArgumentResult> argumentResults, List<MessageResult> messageResults, List<DirectiveResult> directiveResults) Creates an instance of aParseResult
record class.Constructor parameters in org.springframework.shell.command.parser with type arguments of type CommandRegistrationModifierConstructorDescriptionCommandModel
(Map<String, CommandRegistration> registrations, ParserConfig configuration) -
Uses of CommandRegistration in org.springframework.shell.result
Methods in org.springframework.shell.result that return types with arguments of type CommandRegistrationModifier and TypeMethodDescriptionCommandNotFoundMessageProvider.ProviderContext.registrations()
Gets a command registrations.Method parameters in org.springframework.shell.result with type arguments of type CommandRegistration