java.lang.Object
org.springframework.shell.standard.AbstractShellComponent
org.springframework.shell.standard.commands.Completion
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ResourceLoaderAware

@ShellComponent public class Completion extends AbstractShellComponent
Command to create a shell completion files, i.e. for bash.
  • Constructor Details

    • Completion

      public Completion(String rootCommand)
  • Method Details

    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
      Specified by:
      setResourceLoader in interface org.springframework.context.ResourceLoaderAware
      Overrides:
      setResourceLoader in class AbstractShellComponent
    • bash

      @ShellMethod(key="completion bash", value="Generate bash completion script") public String bash()