LocalShellExecAction class
Typed action for a local shell call.
Matches the OpenAPI LocalShellExecAction schema and the Python SDK's
LocalShellCallAction.
- Annotations
-
- @immutable
Constructors
-
LocalShellExecAction({required List<
String> command, Map<String, String> env = const {}, int? timeoutMs, String? workingDirectory, String? user}) -
Creates a LocalShellExecAction.
const
-
LocalShellExecAction.fromJson(Map<
String, dynamic> json) -
Creates a LocalShellExecAction from JSON.
factory
Properties
-
command
→ List<
String> -
Commands to execute.
final
-
env
→ Map<
String, String> -
Environment variables for the command.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutMs → int?
-
Optional timeout in milliseconds.
final
- user → String?
-
Optional user to execute as.
final
- workingDirectory → String?
-
Optional working directory.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override