public static void Main(string[] args) { var model = new Model.Model(new Repository(GetGitRoot())); Directory.GetFiles(TEMPLATE_DIR, "*.stg") .Select(Path.GetFullPath) .ToList() .ForEach(templateFile => ProcessTemplate(templateFile, model)); }
public static void Main() { var model = new Model.Model(new Repository(GetGitRoot())); Directory.GetFiles(TEMPLATE_DIR, "*.stg") .Select(Path.GetFullPath) .ToList() // ReSharper disable once AssignNullToNotNullAttribute .ForEach(templateFile => ProcessTemplate(templateFile, model)); }