mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
Compare commits
1 Commits
renovate/m
...
4d7c7a72cf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d7c7a72cf |
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
- name: Upload Verify Test Results
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v5
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: verify-test-results
|
||||
path: |
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>()
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<PackageVersion Include="StyleCop.Analyzers" PrivateAssets="All" Version="1.2.0-beta.556" />
|
||||
<PackageVersion Include="System.Memory" Version="4.6.3" />
|
||||
<PackageVersion Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" Version="1.0.0-alpha.160" />
|
||||
<PackageVersion Include="Verify.Xunit" Version="31.0.1" />
|
||||
<PackageVersion Include="Verify.Xunit" Version="31.0.2" />
|
||||
<PackageVersion Include="Wcwidth.Sources" Version="3.0.0" />
|
||||
<PackageVersion Include="xunit" Version="2.9.3" />
|
||||
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5">
|
||||
|
||||
Reference in New Issue
Block a user