Table of Contents

Interface IColorAliasResolver

Namespace
ItTiger.TigerCli.Markup
Assembly
ItTiger.TigerCli.dll
Resolves an application-defined raw colour alias (e.g. BrandOrange) to a concrete CliColor. Used by CliMarkupParser in raw colour positions only — foreground, and the background after on. Colour aliases are a different concept from semantic styles (IMarkupStyleResolver): an alias is just a name for a colour and is never a theme role. Keeping this an abstraction lets the parser stay pure — it depends on the resolver, never on a global alias table or console state.
public interface IColorAliasResolver

Methods

TryResolve(string, out CliColor)

Tries to resolve name (case-insensitive) to a registered colour alias. Returns false for unregistered names so the parser can fall back to CliColor enum names. Registered aliases take precedence over enum names (see TigerColorAliasRegistry).
bool TryResolve(string name, out CliColor color)

Parameters

name string
color CliColor

Returns

bool