From b603d1ed03e83f5cbd9a81a8f49e716355f02f2c Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Tue, 7 Apr 2026 22:30:39 +0200 Subject: [PATCH] (GH-4784) Update Spectre.Console.* to 0.55.0 * fixes #4784 --- src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs | 4 ++-- src/Cake.Frosting/Internal/Commands/DefaultCommand.cs | 4 ++-- src/Cake/Commands/DefaultCommand.cs | 2 +- src/Directory.Packages.props | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs b/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs index e543472107..dc7e4304eb 100644 --- a/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs +++ b/src/Cake.Cli/Infrastructure/CakeSpectreReportPrinter.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. @@ -35,7 +35,7 @@ public void Write(CakeReport report) // Create a table var table = new Table().Border(TableBorder.SimpleHeavy); table.Width(100); - table.BorderStyle(new Style().Foreground(ConsoleColor.Green)); + table.BorderStyle(default(Style).Foreground(ConsoleColor.Green)); var includeSkippedReasonColumn = report.Any(r => !string.IsNullOrEmpty(r.SkippedMessage)); var rowStyle = new Style(ConsoleColor.Green); diff --git a/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs b/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs index 4f90895b04..b1de7d1484 100644 --- a/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs +++ b/src/Cake.Frosting/Internal/Commands/DefaultCommand.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. @@ -24,7 +24,7 @@ public DefaultCommand(IServiceCollection services) _services = services ?? throw new ArgumentNullException(nameof(services)); } - public override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken) + protected override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken) { // Register arguments var arguments = CreateCakeArguments(context.Remaining, settings); diff --git a/src/Cake/Commands/DefaultCommand.cs b/src/Cake/Commands/DefaultCommand.cs index 66e50db63a..4082aa680b 100644 --- a/src/Cake/Commands/DefaultCommand.cs +++ b/src/Cake/Commands/DefaultCommand.cs @@ -58,7 +58,7 @@ public DefaultCommand( /// The command settings. /// The cancellation token to monitor for cancel requests. /// The exit code. - public override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken) + protected override int Execute(CommandContext context, DefaultCommandSettings settings, System.Threading.CancellationToken cancellationToken) { try { diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 3630e6fb17..765346752e 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -27,9 +27,9 @@ - - - + + +