|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.gshell.execute.CommandExecutorImpl
public class CommandExecutorImpl
The default CommandExecutor component.
| Constructor Summary | |
|---|---|
CommandExecutorImpl(AliasRegistry aliases,
CommandResolver resolver,
CommandLineParser parser)
|
|
| Method Summary | |
|---|---|
Object |
execute(Shell shell,
Object... args)
Execute a pre-processed command-line. |
Object |
execute(Shell shell,
String line)
Execute a command-line, parsing out valid recognized syntax. |
Object |
execute(Shell shell,
String name,
Object[] args)
Execute command name/path with the given arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public CommandExecutorImpl(AliasRegistry aliases,
CommandResolver resolver,
CommandLineParser parser)
| Method Detail |
|---|
public Object execute(Shell shell,
String line)
throws Exception
CommandExecutor
execute in interface CommandExecutorshell - The executing shell.line - Raw command-line to parse and execute.
Exception - Command-line execution failed.
public Object execute(Shell shell,
Object... args)
throws Exception
CommandExecutor
execute in interface CommandExecutorshell - The executing shell.args - Command arguments, first argument is expected to be the command/path to execute.
Exception - Command-line execution failed.
public Object execute(Shell shell,
String name,
Object[] args)
throws Exception
CommandExecutor
execute in interface CommandExecutorshell - The executing shell.name - Name of the command/path to execute.args - Command arguments.
Exception - Command-line execution failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||