public ExternalProcess(SourceControlProgram scp) { extproc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; extproc.StartInfo.UseShellExecute = false; extproc.StartInfo.RedirectStandardOutput = true; extproc.StartInfo.CreateNoWindow = true; }
private void SetProgramName(SourceControlProgram scp) { if (scp == SourceControlProgram.GitHub) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { extproc.StartInfo.FileName = "gh.exe"; } else { extproc.StartInfo.FileName = "/usr/bin/gh"; } } if (scp == SourceControlProgram.Git) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { extproc.StartInfo.FileName = "Git.exe"; } else { extproc.StartInfo.FileName = "/usr/bin/git"; } } }