mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-14 16:02:50 +08:00
Make AsyncCommand
a little more discoverable (#375)
This commit is contained in:
parent
f2b8afffb3
commit
23564612c1
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user