Example #1
0
 public ShellExecutor(ShellExecutor executor, ILogger logger = null)
 {
     Check.ArgNotNull(executor, nameof(executor));
     this.Timeout          = executor.Timeout;
     this.WorkingDirectory = executor.WorkingDirectory;
     this.StdErrorHandler  = executor.StdErrorHandler;
     this.StdOutHandler    = executor.StdOutHandler;
     this.logger           = logger;
 }
Example #2
0
 public SevenZip(ShellExecutor executor, ILogger logger = null)
     : base(executor, logger)
 {
     if (OperatingSystem.IsWindows())
     {
         this.SetBaseCommand("7za");
     }
     else
     {
         this.SetBaseCommand("7z");
     }
 }
Example #3
0
 public PowerShell(ShellExecutor executor, ILogger logger = null)
     : base(executor, logger)
 {
     this.Setup();
 }
Example #4
0
 public Dotnet(ShellExecutor executor, ILogger logger = null)
     : base(executor, logger)
 {
     this.Setup();
 }
Example #5
0
 public ShellExecutor(string baseCommand, ShellExecutor executor, ILogger logger = null)
     : this(executor, logger)
 {
     this.BaseCommand = baseCommand;
 }