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 org.springframework.shell.standard.AbstractShellComponent
Command to create a shell completion files, i.e. for bash.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Marker interface used in auto-config.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Completion(String rootCommand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
     

    Methods inherited from class org.springframework.shell.standard.AbstractShellComponent

    afterPropertiesSet, getApplicationContext, getCommandCatalog, getCompletionResolver, getResourceLoader, getShell, getTemplateExecutor, getTerminal, getThemeResolver, setApplicationContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 org.springframework.shell.standard.AbstractShellComponent
    • bash

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