mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
17 lines
618 B
C#
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);
|
|
}
|
|
} |