Class LocalAgentRequest.Builder
java.lang.Object
com.shaft.pilot.agent.LocalAgentRequest.Builder
- Enclosing class:
LocalAgentRequest
Fluent builder for
LocalAgentRequest.-
Method Summary
Modifier and TypeMethodDescriptionallowSourceMutation(boolean value) Allows agent mode to perform source mutations.build()Builds the immutable request.Sets a custom command that overrides SHAFT defaults.environment(Map<String, String> value) Sets additional process environment variables.Sets the process timeout.workingDirectory(Path value) Sets the process working directory.
-
Method Details
-
workingDirectory
Sets the process working directory.- Parameters:
value- working directory- Returns:
- this builder
-
command
Sets a custom command that overrides SHAFT defaults.- Parameters:
value- command and arguments- Returns:
- this builder
-
environment
Sets additional process environment variables.- Parameters:
value- environment variables- Returns:
- this builder
-
timeout
Sets the process timeout.- Parameters:
value- timeout- Returns:
- this builder
-
allowSourceMutation
Allows agent mode to perform source mutations.- Parameters:
value- true when the caller has explicitly approved mutation- Returns:
- this builder
-
build
-