ExecRequest class
Constructors
-
ExecRequest({List<
String> argv = const [], String? command, String? dir, String? id, String? stdin, int? timeoutSec}) - Returns a new ExecRequest instance.
Properties
-
argv
↔ List<
String> -
Argv is the command as an argument vector, which is the honest form: it cannot be word-split by accident. Send this OR Command, not both.
getter/setter pair
- command ↔ String?
-
Command is a shell line, for a caller that holds one. It is a convenience over Argv and is the only input that ever reaches a shell.
getter/setter pair
- dir ↔ String?
-
Dir is the working directory to run in. Empty runs in the class's own workdir — /mnt/data for exec, /work for dev.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String?
-
ID is the sandbox to run in, from the path.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stdin ↔ String?
-
Stdin is fed to the command on its standard input.
getter/setter pair
- timeoutSec ↔ int?
-
TimeoutSec bounds the run in seconds. Zero takes the default.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → ExecRequest? -
Returns a new ExecRequest instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< ExecRequest> -
mapFromJson(
dynamic json) → Map< String, ExecRequest> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< ExecRequest> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.