Class JLineShellAutoConfiguration

java.lang.Object
org.springframework.shell.boot.JLineShellAutoConfiguration

@AutoConfiguration @EnableConfigurationProperties(SpringShellProperties.class) public class JLineShellAutoConfiguration extends Object
Shell implementation using JLine to capture input and trigger completions.
Author:
Eric Bottard, Florent Biville, Mahmoud Ben Hassine
  • Constructor Details

  • Method Details

    • onContextClosedEvent

      @EventListener public void onContextClosedEvent(org.springframework.context.event.ContextClosedEvent event) throws IOException
      Throws:
      IOException
    • lineReader

      @Bean public org.jline.reader.LineReader lineReader(org.jline.terminal.Terminal terminal, org.jline.reader.Parser parser, CommandRegistry commandRegistry)
    • inputProvider

      @Bean public JLineInputProvider inputProvider(org.jline.reader.LineReader lineReader)
    • terminal

      @Bean(destroyMethod="close") public org.jline.terminal.Terminal terminal(org.springframework.beans.factory.ObjectProvider<TerminalCustomizer> customizers)
    • promptProvider

      @Bean @ConditionalOnMissingBean(PromptProvider.class) public PromptProvider promptProvider()
    • parser

      @Bean public org.jline.reader.Parser parser()