Table of Contents

Class TigerCliPromptConfiguration<TSettings>

Namespace
ItTiger.TigerCli.Commands
Assembly
ItTiger.TigerCli.dll
App-level compatibility surface for configuring property-scoped prompt providers for a settings type.
public sealed class TigerCliPromptConfiguration<TSettings> where TSettings : TigerCliSettings

Type Parameters

TSettings
The settings type whose prompt providers are being configured.
Inheritance
TigerCliPromptConfiguration<TSettings>
Inherited Members

Remarks

Instances are created by ConfigurePrompts<TSettings>(Action<TigerCliPromptConfiguration<TSettings>>). New code should usually prefer named providers registered through ConfigureProviders(Action<TigerCliProviderConfiguration>) or the group/command provider APIs, but this type remains supported for provider-backed prompts that are naturally tied to a single settings property.

Methods

For<TValue>(Expression<Func<TSettings, TValue>>)

Targets a readable and writable settings property for provider-backed prompt customization.
public TigerCliPromptPropertyBuilder<TSettings, TValue> For<TValue>(Expression<Func<TSettings, TValue>> property)

Parameters

property Expression<Func<TSettings, TValue>>
An expression that directly selects a settings property.

Returns

TigerCliPromptPropertyBuilder<TSettings, TValue>
A property builder used to register the property's choice provider.

Type Parameters

TValue

Exceptions

ArgumentNullException
property is null.
ArgumentException
property does not directly target a readable and writable settings property.