private BaseCommand() { Stats = new CommandStats(); }
public HtmlOutput(SearchOptions options, IOrderedEnumerable <IGrouping <string, FoundLine> > foundlines, CommandStats stats) : base(options, foundlines, stats) { _headerTemplatePath = HtmlTemplateDirectory("header.html"); _contentTemplatePath = HtmlTemplateDirectory("content.html"); _lineHeadTemplatePath = HtmlTemplateDirectory("line-head.html"); _lineTemplatePath = HtmlTemplateDirectory("line.html"); _lineFootTemplatePath = HtmlTemplateDirectory("line-foot.html"); _footerTemplatePath = HtmlTemplateDirectory("footer.html"); if (File.Exists(_headerTemplatePath)) { _headerTemplate = File.ReadAllText(_headerTemplatePath); } if (File.Exists(_contentTemplatePath)) { _contentTemplate = File.ReadAllText(_contentTemplatePath); } if (File.Exists(_lineHeadTemplatePath)) { _lineHeadTemplate = File.ReadAllText(_lineHeadTemplatePath); } if (File.Exists(_lineTemplatePath)) { _lineTemplate = File.ReadAllText(_lineTemplatePath); } if (File.Exists(_lineFootTemplatePath)) { _lineFootTemplate = File.ReadAllText(_lineFootTemplatePath); } if (File.Exists(_footerTemplatePath)) { _footerTemplate = File.ReadAllText(_footerTemplatePath); } }
public ConsoleOutput(SearchOptions options, IOrderedEnumerable <IGrouping <string, FoundLine> > foundlines, CommandStats stats) : base(options, foundlines, stats) { }
public ProcessFiles(SearchOptions options, IOrderedEnumerable <IGrouping <string, FoundLine> > foundFiles, CommandStats stats) : base(options, foundFiles, stats) { }
public SearchProcess(SearchOptions options, IOrderedEnumerable <IGrouping <string, FoundLine> > foundlines, CommandStats stats) { Options = options; FoundLineCollection = foundlines; Stats = stats; }