mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-26 05:02:50 +08:00
29 lines
845 B
C#
29 lines
845 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Represents something that can enrich a profile.
|
|
/// </summary>
|
|
public interface IProfileEnricher
|
|
{
|
|
/// <summary>
|
|
/// Gets the name of the enricher.
|
|
/// </summary>
|
|
public string Name { get; }
|
|
|
|
/// <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);
|
|
}
|
|
}
|