Пример #1
0
 protected PipelineBuilderBase(Source[] source)
 {
     Logger      = new PipelineLogger();
     Option      = new PSRuleOption();
     Source      = source;
     _Output     = (r, b) => { };
     HostContext = new HostContext();
 }
Пример #2
0
 internal HelpWriter(WriteOutput output, LanguageMode languageMode, bool inSession, PipelineLogger logger, bool online)
     : base(output)
 {
     _Logger       = logger;
     _Result       = new List <InvokeResult>();
     _LanguageMode = languageMode;
     _InSession    = inSession;
     ShouldOutput  = !online;
 }
Пример #3
0
 internal AssertWriter(WriteOutput output, PipelineLogger logger, PipelineWriter innerWriter, OutputStyle style)
     : base(output)
 {
     _Logger      = logger;
     _InnerWriter = innerWriter;
     if (style == OutputStyle.AzurePipelines)
     {
         _Formatter = new AzurePipelinesFormatter(logger);
     }
     else if (style == OutputStyle.GitHubActions)
     {
         _Formatter = new GitHubActionsFormatter(logger);
     }
     else if (style == OutputStyle.Plain)
     {
         _Formatter = new PlainFormatter(logger);
     }
     else if (style == OutputStyle.Client)
     {
         _Formatter = new ClientFormatter(logger);
     }
 }
Пример #4
0
 internal ClientFormatter(PipelineLogger logger)
 {
     _Logger = logger;
 }
Пример #5
0
 internal GitHubActionsFormatter(PipelineLogger logger)
 {
     _Logger = logger;
 }
Пример #6
0
 internal AzurePipelinesFormatter(PipelineLogger logger)
 {
     _Logger = logger;
 }
Пример #7
0
 internal PlainFormatter(PipelineLogger logger)
 {
     _Logger = logger;
 }