cd method

  1. @override
Shell cd(
  1. String path
)

Create new shell at the given path

Implementation

@override
Shell cd(String path) {
  if (isRelative(path)) {
    path = join(_workingDirectoryPath, path);
  }
  if (_options.commandVerbose) {
    streamSinkWriteln(_options.stdout ?? stdout, '\$ cd $path',
        encoding: _options.stdoutEncoding);
  }
  return cloneWithOptions(options.clone(workingDirectory: path));
}