mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 17:15:28 +08:00 
			
		
		
		
	Make AsyncCommand a little more discoverable (#375)
				
					
				
			This commit is contained in:
		| @@ -75,6 +75,8 @@ public class AddReferenceCommand : Command<AddReferenceSettings> | ||||
| } | ||||
| ``` | ||||
|  | ||||
| You can use `AsyncCommand` if you need async support. | ||||
|  | ||||
| ## Let's tie it together | ||||
|  | ||||
| Now when we have our commands and settings implemented, we can compose a command tree | ||||
|   | ||||
| @@ -5,6 +5,7 @@ namespace Spectre.Console.Cli | ||||
|     /// <summary> | ||||
|     /// Base class for a command without settings. | ||||
|     /// </summary> | ||||
|     /// <seealso cref="AsyncCommand"/> | ||||
|     public abstract class Command : ICommand<EmptyCommandSettings> | ||||
|     { | ||||
|         /// <summary> | ||||
|   | ||||
| @@ -8,6 +8,7 @@ namespace Spectre.Console.Cli | ||||
|     /// Base class for a command. | ||||
|     /// </summary> | ||||
|     /// <typeparam name="TSettings">The settings type.</typeparam> | ||||
|     /// <seealso cref="AsyncCommand{TSettings}"/> | ||||
|     public abstract class Command<TSettings> : ICommand<TSettings> | ||||
|         where TSettings : CommandSettings | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Loïc Sharma
					Loïc Sharma