Clean up profile enrichment

This commit is contained in:
Patrik Svensson
2021-01-29 17:03:04 +01:00
committed by Patrik Svensson
parent 953008b5e3
commit e20f6284f9
24 changed files with 254 additions and 158 deletions

View File

@@ -30,6 +30,11 @@ namespace Spectre.Console
/// </summary>
public InteractionSupport Interactive { get; set; }
/// <summary>
/// Gets or sets the profile enrichments settings.
/// </summary>
public ProfileEnrichment Enrichment { get; set; }
/// <summary>
/// Gets or sets the environment variables.
/// If not value is provided the default environment variables will be used.
@@ -37,8 +42,11 @@ namespace Spectre.Console
public Dictionary<string, string>? EnvironmentVariables { get; set; }
/// <summary>
/// Gets or sets the profile enrichers to use.
/// Initializes a new instance of the <see cref="AnsiConsoleSettings"/> class.
/// </summary>
public List<IProfileEnricher>? Enrichers { get; set; }
public AnsiConsoleSettings()
{
Enrichment = new ProfileEnrichment();
}
}
}