execWhich method

Future<String?> execWhich(
  1. String commandName, {
  2. bool ignoreCache = false,
  3. String? def,
})

Call POSIX which command. Calls exec with command which and args commandName. Caches response than returns the executable path for commandName.

Implementation

Future<String?> execWhich(String commandName,
        {bool ignoreCache = false, String? def}) async =>
    runner.dockerHost
        .execWhich(name, commandName, ignoreCache: ignoreCache, def: def);