Files
CliFx/CliFx/ICommand.cs
Alexey Golub 4732166f5f Refactor
2020-05-16 21:54:16 +03:00

17 lines
618 B
C#

using System.Threading.Tasks;
namespace CliFx
{
/// <summary>
/// Entry point in a command line application.
/// </summary>
public interface ICommand
{
/// <summary>
/// Executes the command using the specified implementation of <see cref="IConsole"/>.
/// This is the method that's called when the command is invoked by a user through command line.
/// </summary>
/// <remarks>If the execution of the command is not asynchronous, simply end the method with <code>return default;</code></remarks>
ValueTask ExecuteAsync(IConsole console);
}
}