From eafc87c7b810c4cb125bbf68147528b8abe797d9 Mon Sep 17 00:00:00 2001 From: Philippe Matray Date: Sat, 28 Feb 2026 01:23:39 +0100 Subject: [PATCH] fix: update ExecuteAsync signature for Spectre.Console v1 breaking change AsyncCommand.ExecuteAsync now requires a CancellationToken parameter in the latest Spectre.Console version. Add the parameter to satisfy the override contract. --- src/SalesPitch/Commands/SalesPitchCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SalesPitch/Commands/SalesPitchCommand.cs b/src/SalesPitch/Commands/SalesPitchCommand.cs index bf9498f..ded86cb 100644 --- a/src/SalesPitch/Commands/SalesPitchCommand.cs +++ b/src/SalesPitch/Commands/SalesPitchCommand.cs @@ -42,7 +42,8 @@ public SalesPitchCommand( /// The exit code public override async Task ExecuteAsync( CommandContext context, - SalesPitchSettings settings) + SalesPitchSettings settings, + CancellationToken cancellationToken) { // Display a header and a rule AnsiConsole.Write(