Package org.ikasan.cli.shell.command
Class ShellCommand
- java.lang.Object
-
- org.ikasan.cli.shell.command.AbstractCommand
-
- org.ikasan.cli.shell.command.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.ParameterResolvercommandParameterResolver()Provides infinite arity on the args passed.java.lang.Stringexec(java.util.List<java.lang.String> commands)Execute native comamnd line command.
-
-
-
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:
-
-