runGitAddOrigin function

Future<void> runGitAddOrigin(
  1. String userId,
  2. String repoName
)

git remote add origin

Implementation

Future<void> runGitAddOrigin(String userId, String repoName) async {
  final process = await runGit(
    [
      'remote',
      'add',
      'origin',
      'https://github.com/$userId/$repoName.git',
    ],
    onStdout: (msg) {
      stdout.write(msg);
    },
    onStderr: (msg) {
      stdout.write(msg);
    },
  );

  await process.exitCode;
}