mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-30 04:15:49 +08:00
committed by
Patrik Svensson
parent
913a7b1e37
commit
a23bec4082
23
src/Spectre.Console/IProfileEnricher.cs
Normal file
23
src/Spectre.Console/IProfileEnricher.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user