Package com.e1c.g5.v8.dt.cli.api
Interface ICliCommandExecutor
- All Known Implementing Classes:
CliCommandExecutor
public interface ICliCommandExecutor
Service for executing CLI commands programmatically.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCommand execution result and output. -
Method Summary
Modifier and TypeMethodDescriptionExecutes 1C:EDT CLI command.Executes 1C:EDT CLI command.
-
Method Details
-
execute
ICliCommandExecutor.ICommandResult execute(String command, InputStream in, Map<String, Object> variables) Executes 1C:EDT CLI command.- Parameters:
command- command to execute, cannot benull.in- input stream to use forSystem.induring the command execution. Cannot benull.variables- session variables, cannot benull.- Returns:
- command execution result, never
null. - Throws:
CliCommandException- on exception during the command execution, or if the command returned a non-OKIStatus.- See Also:
-
execute
Executes 1C:EDT CLI command.- Parameters:
command- command to execute, cannot benull.- Returns:
- command execution result, never
null. - Throws:
CliCommandException- on exception during the command execution, or if the command returned a non-OKIStatus.- See Also:
-