mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52: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
|
## 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
|
||||||
|
@ -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>
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user