mirror of
				https://github.com/spectreconsole/spectre.console.git
				synced 2025-10-25 15:19:23 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			c5e2409b38
			...
			renovate/s
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | a527dfa18d | ||
|  | e51812237e | 
| @@ -18,7 +18,7 @@ public class HelloCommand : Command<HelloCommand.Settings> | |||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|     public override int Execute(CommandContext context, Settings settings) |     public override int Execute(CommandContext context, Settings settings, CancellationToken cancellationToken) | ||||||
|     { |     { | ||||||
|         AnsiConsole.MarkupLine($"Hello, [blue]{settings.Name}[/]"); |         AnsiConsole.MarkupLine($"Hello, [blue]{settings.Name}[/]"); | ||||||
|         return 0; |         return 0; | ||||||
|   | |||||||
| @@ -55,7 +55,7 @@ in the previous step. | |||||||
| ```csharp | ```csharp | ||||||
| public class AddPackageCommand : Command<AddPackageSettings> | public class AddPackageCommand : Command<AddPackageSettings> | ||||||
| { | { | ||||||
|     public override int Execute(CommandContext context, AddPackageSettings settings) |     public override int Execute(CommandContext context, AddPackageSettings settings, CancellationToken cancellationToken) | ||||||
|     { |     { | ||||||
|         // Omitted |         // Omitted | ||||||
|         return 0; |         return 0; | ||||||
| @@ -64,7 +64,7 @@ public class AddPackageCommand : Command<AddPackageSettings> | |||||||
|  |  | ||||||
| public class AddReferenceCommand : Command<AddReferenceSettings> | public class AddReferenceCommand : Command<AddReferenceSettings> | ||||||
| { | { | ||||||
|     public override int Execute(CommandContext context, AddReferenceSettings settings) |     public override int Execute(CommandContext context, AddReferenceSettings settings, CancellationToken cancellationToken) | ||||||
|     { |     { | ||||||
|         // Omitted |         // Omitted | ||||||
|         return 0; |         return 0; | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ internal sealed class FileSizeCommand : Command<FileSizeCommand.Settings> | |||||||
|         public bool IncludeHidden { get; init; } |         public bool IncludeHidden { get; init; } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public override int Execute([NotNull] CommandContext context, [NotNull] Settings settings) |     public override int Execute(CommandContext context, Settings settings, CancellationToken cancellationToken) | ||||||
|     { |     { | ||||||
|         var searchOptions = new EnumerationOptions |         var searchOptions = new EnumerationOptions | ||||||
|         { |         { | ||||||
|   | |||||||
| @@ -61,7 +61,7 @@ in the previous step. | |||||||
| ```csharp | ```csharp | ||||||
| public class AddPackageCommand : Command<AddPackageSettings> | public class AddPackageCommand : Command<AddPackageSettings> | ||||||
| { | { | ||||||
|     public override int Execute(CommandContext context, AddPackageSettings settings) |     public override int Execute(CommandContext context, AddPackageSettings settings, CancellationToken cancellationToken) | ||||||
|     { |     { | ||||||
|         // Omitted |         // Omitted | ||||||
|         return 0; |         return 0; | ||||||
| @@ -70,7 +70,7 @@ public class AddPackageCommand : Command<AddPackageSettings> | |||||||
|  |  | ||||||
| public class AddReferenceCommand : Command<AddReferenceSettings> | public class AddReferenceCommand : Command<AddReferenceSettings> | ||||||
| { | { | ||||||
|     public override int Execute(CommandContext context, AddReferenceSettings settings) |     public override int Execute(CommandContext context, AddReferenceSettings settings, CancellationToken cancellationToken) | ||||||
|     { |     { | ||||||
|         // Omitted |         // Omitted | ||||||
|         return 0; |         return 0; | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ The following example validates the exit code and terminal output of a `Spectre. | |||||||
|             _console = console; |             _console = console; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         public override int Execute(CommandContext context) |         public override int Execute(CommandContext context, CancellationToken cancellationToken) | ||||||
|         { |         { | ||||||
|             _console.WriteLine("Hello world."); |             _console.WriteLine("Hello world."); | ||||||
|             return 0; |             return 0; | ||||||
| @@ -78,7 +78,7 @@ public sealed class InteractiveCommandTests | |||||||
|             _console = console; |             _console = console; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         public override int Execute(CommandContext context) |         public override int Execute(CommandContext context, CancellationToken cancellationToken) | ||||||
|         { |         { | ||||||
|             var fruits = _console.Prompt( |             var fruits = _console.Prompt( | ||||||
|                 new MultiSelectionPrompt<string>() |                 new MultiSelectionPrompt<string>() | ||||||
|   | |||||||
| @@ -47,7 +47,7 @@ | |||||||
|     <PackageReference Include="Humanizer.Core" Version="2.14.1" /> |     <PackageReference Include="Humanizer.Core" Version="2.14.1" /> | ||||||
|     <PackageReference Include="Newtonsoft.Json" Version="13.0.4" /> |     <PackageReference Include="Newtonsoft.Json" Version="13.0.4" /> | ||||||
|     <PackageReference Include="Scriban" Version="6.4.0" /> |     <PackageReference Include="Scriban" Version="6.4.0" /> | ||||||
|     <PackageReference Include="Spectre.IO" Version="0.20.0" /> |     <PackageReference Include="Spectre.IO" Version="0.21.0" /> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|  |  | ||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user