runCommand method

Future<String> runCommand(
  1. List<String> arguments, {
  2. Map<String, String>? environment,
  3. Logger? logger,
})

Implementation

Future<String> runCommand(
  List<String> arguments, {
  Map<String, String>? environment,
  Logger? logger,
}) {
  return common.runCommand(
    executablePath,
    arguments,
    environment: {
      if (environment != null) ...environment,
      if (rustupHome != null) 'RUSTUP_HOME': rustupHome!,
      if (cargoHome != null) 'CARGO_HOME': cargoHome!,
    },
    logger: logger ?? this.logger,
  );
}