Files
CliFx/CliFx.Tests/TestCommands/EchoCommand.cs
Alexey Golub 43a304bb26 Refactor tests
2019-08-25 17:28:54 +03:00

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;
}
}
}