Class TigerCliAsyncCommandHandler<TSettings>
Base class for async command handlers returning a raw integer exit code. Handlers are created
per run — via their parameterless constructor, or via the registration's factory when one was
supplied — so they must not assume shared state between runs.
public abstract class TigerCliAsyncCommandHandler<TSettings> where TSettings : TigerCliSettings, new()
Type Parameters
TSettings
- Inheritance
-
TigerCliAsyncCommandHandler<TSettings>
- Inherited Members
Methods
ExecuteAsync(TSettings)
Executes the command with fully bound, prompted, and validated
settings.
The returned integer becomes the process exit code as-is; it is not remapped by the app's
exit-code policy, which applies only to framework-owned outcomes
(TigerCliExitKind). 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<int> ExecuteAsync(TSettings settings)
Parameters
settingsTSettings