Table of Contents

Interface IAsyncOptionHandler<T>

Namespace
Albatross.CommandLine
Assembly
Albatross.CommandLine.dll

Handler for processing command options or arguments as pre-actions before the main command handler executes. Use this interface for handlers that perform side effects without returning a value.

public interface IAsyncOptionHandler<in T> where T : Option

Type Parameters

T

The type of the option being handled.

Methods

InvokeAsync(T, ParseResult, CancellationToken)

Processes the option asynchronously.

Task InvokeAsync(T symbol, ParseResult result, CancellationToken cancellationToken)

Parameters

symbol T

The option being processed.

result ParseResult

The parse result containing the option's value.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task