diff --git a/docs/input/cli/introduction.md b/docs/input/cli/introduction.md index cf16bf6..b125104 100644 --- a/docs/input/cli/introduction.md +++ b/docs/input/cli/introduction.md @@ -75,6 +75,8 @@ public class AddReferenceCommand : Command } ``` +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 diff --git a/src/Spectre.Console/Cli/Command.cs b/src/Spectre.Console/Cli/Command.cs index b706d1c..43ac766 100644 --- a/src/Spectre.Console/Cli/Command.cs +++ b/src/Spectre.Console/Cli/Command.cs @@ -5,6 +5,7 @@ namespace Spectre.Console.Cli /// /// Base class for a command without settings. /// + /// public abstract class Command : ICommand { /// diff --git a/src/Spectre.Console/Cli/Command`1.cs b/src/Spectre.Console/Cli/Command`1.cs index c8928eb..775e38f 100644 --- a/src/Spectre.Console/Cli/Command`1.cs +++ b/src/Spectre.Console/Cli/Command`1.cs @@ -8,6 +8,7 @@ namespace Spectre.Console.Cli /// Base class for a command. /// /// The settings type. + /// public abstract class Command : ICommand where TSettings : CommandSettings {