Table of Contents

Class TigerCliAsyncCommandHandler<TSettings, TExitCode>

Namespace
ItTiger.TigerCli.Commands
Assembly
ItTiger.TigerCli.dll
Base class for async command handlers returning a typed exit code. The returned TExitCode value is converted to its underlying integer and used as the process exit code as-is for app-specific enums. TigerCliExitKind is the deliberate exception: it is a portable semantic outcome and resolves through the app's exit-code policy, letting reusable command libraries return a framework vocabulary without owning the consuming app's final process codes. Registering an app-specific enum via TigerCliAppBuilder.UseExitCodes<TExitCode> keeps app codes and framework codes in one documented scheme.
public abstract class TigerCliAsyncCommandHandler<TSettings, TExitCode> where TSettings : TigerCliSettings, new() where TExitCode : struct, Enum

Type Parameters

TSettings
TExitCode
Inheritance
TigerCliAsyncCommandHandler<TSettings, TExitCode>
Inherited Members

Methods

ExecuteAsync(TSettings)

Executes the command with fully bound, prompted, and validated settings. An app-specific enum value becomes its underlying process exit code directly; a TigerCliExitKind value resolves through the app's exit-code policy. A thrown TigerCliCommandException is reported and resolved through the app's exit-code policy for its declared kind; any other exception escaping this method is reported and mapped through UnhandledException.
public abstract Task<TExitCode> ExecuteAsync(TSettings settings)

Parameters

settings TSettings

Returns

Task<TExitCode>