Add profile support

Closes #231
This commit is contained in:
Patrik Svensson
2021-01-16 17:23:58 +01:00
committed by Patrik Svensson
parent 913a7b1e37
commit a23bec4082
230 changed files with 1241 additions and 1628 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections.Generic;
namespace Spectre.Console
{
/// <summary>
/// Represents something that can enrich a profile.
/// </summary>
public interface IProfileEnricher
{
/// <summary>
/// Gets whether or not this enricher is enabled.
/// </summary>
/// <param name="environmentVariables">The environment variables.</param>
/// <returns>Whether or not this enricher is enabled.</returns>
bool Enabled(IDictionary<string, string> environmentVariables);
/// <summary>
/// Enriches the profile.
/// </summary>
/// <param name="profile">The profile to enrich.</param>
void Enrich(Profile profile);
}
}