addRemoteRemote function

Future<bool> addRemoteRemote({
  1. required String url,
})

Implementation

Future<bool> addRemoteRemote({required String url}) async {
  final process = await Process.start("git", ['remote', 'add', 'origin', url]);
  await stdout.addStream(process.stdout);
  await stderr.addStream(process.stderr);
  await process.exitCode;
  return checkProcessCode(await process.exitCode);
}