public FileComponent(ISobaScript soba, IEncDetector detector, IExer exer) : base(soba) { EncDetector = detector; Exer = exer ?? throw new ArgumentNullException(nameof(exer)); _envPath = new Lazy <IEnumerable <string> >(() => GetEnvPath(EnvironmentVariableTarget.Process)); }
public FileComponent(ISobaScript soba, IEncDetector detector, string basePath) : this(soba, detector, new Exer(basePath)) { }