blob: 68e41bd8f0b8b1450a22cdc4c3df398fabde32ab [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io';
/// A function that starts a process when called.
///
/// In most usages, this should just be a tearoff of [Process.start]. This can
/// be replaced in tests to prevent actual creation of system processes.
typedef StartProcess = Future<Process> Function(
String executable,
List<String> arguments, {
String? workingDirectory,
Map<String, String>? environment,
bool includeParentEnvironment,
bool runInShell,
ProcessStartMode mode,
});