GitRunRequest class Testing

Everything needed to launch one git command.

Constructors

GitRunRequest({required List<String> arguments, String? workingDirectory, Map<String, String> environment = const <String, String>{}, Uint8List? stdin, Duration? timeout, int? maxOutputBytes})
Creates a request running arguments in workingDirectory, with environment, stdin, timeout and maxOutputBytes applied to this call only.
const

Properties

arguments → List<String>
Git arguments, without the executable: the subcommand, optionally preceded by git's own global options (e.g. -c key=value, --git-dir).
final
environment → Map<String, String>
Environment variables layered on top of the runner's global environment for this call only.
final
hashCode → int
The hash code for this object.
no setterinherited
maxOutputBytes → int?
Maximum number of bytes of standard output this command may produce. When null, the runner's default applies. A value that is not positive is refused with an ArgumentError. Standard error does not count toward it and keeps its own bound.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stdin → Uint8List?
Bytes written to the command's standard input. When null, stdin is closed immediately so a git command reading stdin sees EOF instead of blocking forever.
final
timeout → Duration?
Delay after which the command is stopped. Descendants that outlive its main process may keep running. When null, the runner's default delay applies.
final
workingDirectory → String?
Directory the command runs in; null inherits the current directory.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited