Compare commits

..

1 Commits

Author SHA1 Message Date
renovate[bot]
c5e2409b38 chore: Update actions/setup-node action to v6 2025-10-14 05:38:32 +00:00
6 changed files with 9 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ jobs:
uses: actions/setup-dotnet@v5
- name: Setup Node.js
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: '22'

View File

@@ -18,7 +18,7 @@ public class HelloCommand : Command<HelloCommand.Settings>
}
public override int Execute(CommandContext context, Settings settings, CancellationToken cancellationToken)
public override int Execute(CommandContext context, Settings settings)
{
AnsiConsole.MarkupLine($"Hello, [blue]{settings.Name}[/]");
return 0;

View File

@@ -55,7 +55,7 @@ in the previous step.
```csharp
public class AddPackageCommand : Command<AddPackageSettings>
{
public override int Execute(CommandContext context, AddPackageSettings settings, CancellationToken cancellationToken)
public override int Execute(CommandContext context, AddPackageSettings settings)
{
// Omitted
return 0;
@@ -64,7 +64,7 @@ public class AddPackageCommand : Command<AddPackageSettings>
public class AddReferenceCommand : Command<AddReferenceSettings>
{
public override int Execute(CommandContext context, AddReferenceSettings settings, CancellationToken cancellationToken)
public override int Execute(CommandContext context, AddReferenceSettings settings)
{
// Omitted
return 0;

View File

@@ -33,7 +33,7 @@ internal sealed class FileSizeCommand : Command<FileSizeCommand.Settings>
public bool IncludeHidden { get; init; }
}
public override int Execute(CommandContext context, Settings settings, CancellationToken cancellationToken)
public override int Execute([NotNull] CommandContext context, [NotNull] Settings settings)
{
var searchOptions = new EnumerationOptions
{

View File

@@ -61,7 +61,7 @@ in the previous step.
```csharp
public class AddPackageCommand : Command<AddPackageSettings>
{
public override int Execute(CommandContext context, AddPackageSettings settings, CancellationToken cancellationToken)
public override int Execute(CommandContext context, AddPackageSettings settings)
{
// Omitted
return 0;
@@ -70,7 +70,7 @@ public class AddPackageCommand : Command<AddPackageSettings>
public class AddReferenceCommand : Command<AddReferenceSettings>
{
public override int Execute(CommandContext context, AddReferenceSettings settings, CancellationToken cancellationToken)
public override int Execute(CommandContext context, AddReferenceSettings settings)
{
// Omitted
return 0;

View File

@@ -40,7 +40,7 @@ The following example validates the exit code and terminal output of a `Spectre.
_console = console;
}
public override int Execute(CommandContext context, CancellationToken cancellationToken)
public override int Execute(CommandContext context)
{
_console.WriteLine("Hello world.");
return 0;
@@ -78,7 +78,7 @@ public sealed class InteractiveCommandTests
_console = console;
}
public override int Execute(CommandContext context, CancellationToken cancellationToken)
public override int Execute(CommandContext context)
{
var fruits = _console.Prompt(
new MultiSelectionPrompt<string>()