Class ShellCommand


  • @ShellComponent
    public class ShellCommand
    extends AbstractCommand
    Provide a simple shell command to allow execution of native commands from the Ikasan Shell.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShellCommand()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.shell.ParameterResolver commandParameterResolver()
      Provides infinite arity on the args passed.
      java.lang.String exec​(java.util.List<java.lang.String> commands)
      Execute native comamnd line command.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShellCommand

        public ShellCommand()
    • Method Detail

      • exec

        @ShellMethod(value="Execute any command line command. Syntax: ! ls -la",
                     group="Ikasan Commands",
                     key="!")
        public java.lang.String exec​(@ShellOption(optOut=true)
                                     java.util.List<java.lang.String> commands)
        Execute native comamnd line command.
        Parameters:
        commands -
        Returns:
      • commandParameterResolver

        @Bean
        public org.springframework.shell.ParameterResolver commandParameterResolver()
        Provides infinite arity on the args passed. FIXME - pipe on ps -ef | grep ... seems to have issues
        Returns: