DefaultCommand.

Execute(CommandContext, DefaultCommandSettings, CancellationToken) Method

Summary

Executes the command with the specified context and settings.
Namespace
Cake.Commands
Containing Type
DefaultCommand

Syntax

public override int Execute(CommandContext context, DefaultCommandSettings settings, CancellationToken cancellationToken)

Parameters

Name Type Description
context CommandContext The command context.
settings DefaultCommandSettings The command settings.
cancellationToken CancellationToken The cancellation token to monitor for cancel requests.

Return Value

Type Description
int The exit code.