Table of Contents

Method DoExecuteAsync

Namespace
Ploch.CommandLine.Spectre.Commands
Assembly
Ploch.CommandLine.Spectre.dll

DoExecuteAsync(CommandContext, TSettings, CancellationToken)

Implements the command's execution logic.

protected abstract Task<ExitCode> DoExecuteAsync(CommandContext context, TSettings settings, CancellationToken cancellationToken)

Parameters

context CommandContext

The command context containing execution information.

settings TSettings

The settings to use for command execution.

cancellationToken CancellationToken

A token that signals the command should stop work.

Returns

Task<ExitCode>

A task representing the asynchronous operation that returns an ExitCode.