which function
Find the command according to the paths
or env variables (PATH
)
Implementation
Future<String?> which(
String command, {
Map<String, String>? environment,
bool includeParentEnvironment = true,
}) async {
return whichSync(
command,
environment: environment,
includeParentEnvironment: includeParentEnvironment,
);
}