ContextStack constructor

ContextStack(
  1. String initialWorkingDirectory
)

Creates a context stack with the given initial working directory.

Implementation

ContextStack(String initialWorkingDirectory) {
  // Create the root interactive context
  _stack.add(
    ExecutionContext(
      workingDirectory: initialWorkingDirectory,
      sourceFile: null,
      recordToSession: true,
      silent: false,
      parent: null,
    ),
  );
}