Make AsyncCommand a little more discoverable (#375)

This commit is contained in:
Loïc Sharma 2021-04-18 00:35:37 -07:00 committed by GitHub
parent f2b8afffb3
commit 23564612c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ public class AddReferenceCommand : Command<AddReferenceSettings>
} }
``` ```
You can use `AsyncCommand` if you need async support.
## Let's tie it together ## Let's tie it together
Now when we have our commands and settings implemented, we can compose a command tree Now when we have our commands and settings implemented, we can compose a command tree

View File

@ -5,6 +5,7 @@ namespace Spectre.Console.Cli
/// <summary> /// <summary>
/// Base class for a command without settings. /// Base class for a command without settings.
/// </summary> /// </summary>
/// <seealso cref="AsyncCommand"/>
public abstract class Command : ICommand<EmptyCommandSettings> public abstract class Command : ICommand<EmptyCommandSettings>
{ {
/// <summary> /// <summary>

View File

@ -8,6 +8,7 @@ namespace Spectre.Console.Cli
/// Base class for a command. /// Base class for a command.
/// </summary> /// </summary>
/// <typeparam name="TSettings">The settings type.</typeparam> /// <typeparam name="TSettings">The settings type.</typeparam>
/// <seealso cref="AsyncCommand{TSettings}"/>
public abstract class Command<TSettings> : ICommand<TSettings> public abstract class Command<TSettings> : ICommand<TSettings>
where TSettings : CommandSettings where TSettings : CommandSettings
{ {