mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
19 lines
461 B
C#
19 lines
461 B
C#
using System.Threading.Tasks;
|
|
using CliFx.Attributes;
|
|
using CliFx.Services;
|
|
|
|
namespace CliFx.Tests.TestCommands
|
|
{
|
|
[Command("echo")]
|
|
public class EchoCommand : ICommand
|
|
{
|
|
[CommandOption("message", 'm', IsRequired = true)]
|
|
public string Message { get; set; }
|
|
|
|
public Task ExecuteAsync(IConsole console)
|
|
{
|
|
console.Output.WriteLine(Message);
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
} |