ExecutionContext constructor

ExecutionContext({
  1. required String workingDirectory,
  2. String? sourceFile,
  3. bool recordToSession = true,
  4. bool silent = false,
  5. ExecutionContext? parent,
})

Creates an execution context.

  • workingDirectory: The working directory for path resolution.
  • sourceFile: The source file being executed (null for interactive).
  • recordToSession: Whether to record commands to session file.
  • silent: Whether output is suppressed.
  • parent: The parent context (null for root/interactive context).

Implementation

ExecutionContext({
  required this.workingDirectory,
  this.sourceFile,
  this.recordToSession = true,
  this.silent = false,
  this.parent,
});