runCommand method
Runs a command using the specified binary path and arguments.
binaryPath
: The path to the binary to execute.args
: A list of arguments to pass to the command.sudo
: Whether the command should be run with sudo privileges. Defaults tofalse
.expectedExitCode
: The expected exit code from the command. If not provided accepts any exit code.
Returns a Future that completes with the command's output as a String.
Implementation
@override
Future<String?> runCommand(String binaryPath, List<String> args,
{bool sudo = false, int? expectedExitCode}) async {
return '';
}