private static PSRuleOption Combine(PSRuleOption o1, PSRuleOption o2) { var result = new PSRuleOption(o1?.SourcePath ?? o2?.SourcePath, o1); result.Binding = BindingOption.Combine(result.Binding, o2?.Binding); result.Configuration = ConfigurationOption.Combine(result.Configuration, o2?.Configuration); result.Execution = ExecutionOption.Combine(result.Execution, o2?.Execution); result.Input = InputOption.Combine(result.Input, o2?.Input); result.Logging = LoggingOption.Combine(result.Logging, o2?.Logging); result.Output = OutputOption.Combine(result.Output, o2?.Output); return(result); }
public PSRuleOption() { // Set defaults Binding = new BindingOption(); Configuration = new ConfigurationOption(); Input = new InputOption(); Logging = new LoggingOption(); Output = new OutputOption(); Suppression = new SuppressionOption(); Execution = new ExecutionOption(); Pipeline = new PipelineHook(); Rule = new RuleOption(); }
private PSRuleOption(string sourcePath, PSRuleOption option) { SourcePath = sourcePath; // Set from existing option instance Binding = new BindingOption(option.Binding); Configuration = new ConfigurationOption(option.Configuration); Input = new InputOption(option.Input); Logging = new LoggingOption(option.Logging); Output = new OutputOption(option.Output); Suppression = new SuppressionOption(option.Suppression); Execution = new ExecutionOption(option.Execution); Pipeline = new PipelineHook(option.Pipeline); Rule = new RuleOption(option.Rule); }
public BaselineInline() { Binding = new BindingOption(); Configuration = new ConfigurationOption(); Rule = new RuleOption(); }