forked from microsoft/PSRule
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fd2d7c
commit e05ff57
Showing
12 changed files
with
558 additions
and
553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using PSRule.Configuration; | ||
|
||
namespace PSRule.Pipeline; | ||
|
||
/// <summary> | ||
/// A helper to build a PSRule pipeline. | ||
/// </summary> | ||
public interface IPipelineBuilder | ||
{ | ||
/// <summary> | ||
/// Configure the pipeline with options. | ||
/// </summary> | ||
IPipelineBuilder Configure(PSRuleOption option); | ||
|
||
/// <summary> | ||
/// Configure the pipeline to use a specific baseline. | ||
/// </summary> | ||
/// <param name="baseline">A baseline option or the name of a baseline.</param> | ||
void Baseline(BaselineOption baseline); | ||
|
||
/// <summary> | ||
/// Build the pipeline. | ||
/// </summary> | ||
/// <param name="writer">Optionally specify a custom writer which will handle output processing.</param> | ||
IPipeline Build(IPipelineWriter writer = null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
|
||
namespace PSRule.Pipeline; | ||
|
||
#nullable enable | ||
|
||
internal interface IPipelineReader | ||
{ | ||
int Count { get; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.