Package org.springframework.shell.boot
Class StandardCommandsAutoConfiguration
java.lang.Object
org.springframework.shell.boot.StandardCommandsAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(org.springframework.shell.standard.commands.Help.Command.class)
@EnableConfigurationProperties(SpringShellProperties.class)
public class StandardCommandsAutoConfiguration
extends Object
Creates beans for standard commands.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.shell.standard.commands.Clear
clear()
org.springframework.shell.standard.commands.Completion
completion
(SpringShellProperties properties) org.springframework.shell.standard.commands.Help
help
(SpringShellProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.shell.style.TemplateExecutor> templateExecutor) org.springframework.shell.standard.commands.History
historyCommand
(org.jline.reader.History jLineHistory) org.springframework.shell.standard.commands.Quit
quit()
org.springframework.shell.standard.commands.Script
script
(org.jline.reader.Parser parser) org.springframework.shell.standard.commands.Stacktrace
stacktrace
(org.springframework.beans.factory.ObjectProvider<org.springframework.shell.result.ThrowableResultHandler> throwableResultHandler) org.springframework.shell.standard.commands.Version
version
(SpringShellProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.BuildProperties> buildProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.GitProperties> gitProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.shell.style.TemplateExecutor> templateExecutor)
-
Constructor Details
-
StandardCommandsAutoConfiguration
public StandardCommandsAutoConfiguration()
-
-
Method Details
-
help
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.Help.Command.class) @ConditionalOnProperty(prefix="spring.shell.command.help", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.shell.standard.commands.Help help(SpringShellProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.shell.style.TemplateExecutor> templateExecutor) -
clear
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.Clear.Command.class) @ConditionalOnProperty(prefix="spring.shell.command.clear", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.shell.standard.commands.Clear clear() -
quit
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.Quit.Command.class) @ConditionalOnProperty(prefix="spring.shell.command.quit", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.shell.standard.commands.Quit quit() -
stacktrace
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.Stacktrace.Command.class) @ConditionalOnProperty(prefix="spring.shell.command.stacktrace", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.shell.standard.commands.Stacktrace stacktrace(org.springframework.beans.factory.ObjectProvider<org.springframework.shell.result.ThrowableResultHandler> throwableResultHandler) -
script
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.Script.Command.class) @ConditionalOnProperty(prefix="spring.shell.command.script", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.shell.standard.commands.Script script(org.jline.reader.Parser parser) -
historyCommand
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.History.Command.class) @ConditionalOnProperty(prefix="spring.shell.command.history", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.shell.standard.commands.History historyCommand(org.jline.reader.History jLineHistory) -
completion
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.Completion.Command.class) @Conditional(OnCompletionCommandCondition.class) public org.springframework.shell.standard.commands.Completion completion(SpringShellProperties properties) -
version
@Bean @ConditionalOnMissingBean(org.springframework.shell.standard.commands.Version.Command.class) @ConditionalOnProperty(prefix="spring.shell.command.version", value="enabled", havingValue="true", matchIfMissing=true) public org.springframework.shell.standard.commands.Version version(SpringShellProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.BuildProperties> buildProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.info.GitProperties> gitProperties, org.springframework.beans.factory.ObjectProvider<org.springframework.shell.style.TemplateExecutor> templateExecutor)
-