Package com.e1c.g5.v8.dt.cli.api
Interface ICliCommandExecutor.ICommandResult
- Enclosing interface:
- ICliCommandExecutor
public static interface ICliCommandExecutor.ICommandResult
Command execution result and output.
-
Method Summary
-
Method Details
-
getResult
Object getResult()Returns command result.Note the special treatment of
IStatus
: it is never returned as is. If a command returns it, and it'sIStatus.isOK()
istrue
,null
is returned from this method. If the status is not OK,CliCommandException
will be thrown from theICliCommandExecutor.execute(String, InputStream, Map)
method.- Returns:
- command result. May be
null
.
-
getOutput
String getOutput()Returns the console output produces during the command execution.- Returns:
- the console output produces during the command execution. Never
null
.
-
getErrorOutput
String getErrorOutput()Returns the error output produces during the command execution.- Returns:
- the error output produces during the command execution. Never
null
.
-