Table of Contents

Method DoExecute

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

DoExecute(CommandContext, TSettings, CancellationToken)

Implements the command's core execution logic.

protected abstract ExitCode DoExecute(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

ExitCode

An exit code indicating the result of the command execution.