Class StandardCommandsAutoConfiguration
java.lang.Object
org.springframework.shell.core.autoconfigure.StandardCommandsAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(SpringShellProperties.class)
public class StandardCommandsAutoConfiguration
extends Object
Creates beans for standard commands.
- Author:
- Eric Bottard, Mahmoud Ben Hassine, Piotr Olaszewski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscriptCommand(CommandRegistry commandRegistry) versionCommand(SpringShellProperties shellProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.BuildProperties> buildProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.GitProperties> gitProperties)
-
Constructor Details
-
StandardCommandsAutoConfiguration
public StandardCommandsAutoConfiguration()
-
-
Method Details
-
helpCommand
@Bean @ConditionalOnProperty(value="spring.shell.command.help.enabled", havingValue="true", matchIfMissing=true) public Command helpCommand() -
clearCommand
@Bean @ConditionalOnProperty(value="spring.shell.command.clear.enabled", havingValue="true", matchIfMissing=true) public Command clearCommand() -
versionCommand
@Bean @ConditionalOnProperty(value="spring.shell.command.version.enabled", havingValue="true", matchIfMissing=true) public Command versionCommand(SpringShellProperties shellProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.BuildProperties> buildProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.GitProperties> gitProperties) -
scriptCommand
@Bean @ConditionalOnProperty(value="spring.shell.command.script.enabled", havingValue="true", matchIfMissing=true) public Command scriptCommand(CommandRegistry commandRegistry)
-