Esempio n. 1
0
 public ExternalProcess(SourceControlProgram scp)
 {
     extproc.StartInfo.WindowStyle            = ProcessWindowStyle.Hidden;
     extproc.StartInfo.UseShellExecute        = false;
     extproc.StartInfo.RedirectStandardOutput = true;
     extproc.StartInfo.CreateNoWindow         = true;
 }
Esempio n. 2
0
 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";
         }
     }
 }