Package com.pulumi.automation
Class CommandRunOptions
java.lang.Object
com.pulumi.automation.CommandRunOptions
Configuration options for running a Pulumi command.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the additional environment variables for the command.static CommandRunOptions.Builderbuilder()Returns a new builder forCommandRunOptions.Returns a consumer that will be called with each engine event from the command.Returns a consumer that will be called with each line of standard error from the command.Returns a consumer that will be called with each line of standard output from the command.Returns the standard input for the command.withAdditionalEnv(Map<String, String> newEnv) Returns a newCommandRunOptionswith the given additional environment variables.withWorkingDir(Path workingDir) Returns a newCommandRunOptionswith the given working directory.Returns the working directory for the command.
-
Field Details
-
Empty
An empty set of options.
-
-
Method Details
-
builder
Returns a new builder forCommandRunOptions.- Returns:
- the builder
-
workingDir
Returns the working directory for the command.- Returns:
- the working directory
-
additionalEnv
Returns the additional environment variables for the command.- Returns:
- the additional environment variables
-
standardInput
Returns the standard input for the command.- Returns:
- the standard input
-
onStandardOutput
Returns a consumer that will be called with each line of standard output from the command.- Returns:
- the consumer for standard output
-
onStandardError
Returns a consumer that will be called with each line of standard error from the command.- Returns:
- the consumer for standard error
-
onEngineEvent
Returns a consumer that will be called with each engine event from the command.- Returns:
- the consumer for engine events
-
withAdditionalEnv
Returns a newCommandRunOptionswith the given additional environment variables.- Parameters:
newEnv- the additional environment variables to add- Returns:
- the new
CommandRunOptions
-
withWorkingDir
Returns a newCommandRunOptionswith the given working directory.- Parameters:
workingDir- the working directory- Returns:
- the new
CommandRunOptions
-