cliGenerateSshKey function

Future<void> cliGenerateSshKey({
  1. String filePath = 'gitlabkey',
})

Implementation

Future<void> cliGenerateSshKey({String filePath = 'gitlabkey'}) async {
  // ssh-keygen -b 2048 -t rsa -f gitlabkey -q -N ""
  const sshkeygenBin = 'ssh-keygen';
  await runCliProcess(sshkeygenBin, [
    '-f',
    filePath,
    '-q',
    '-N',
    '',
  ]);
}