Files
CliFx/CliFx.Benchmarks/Commands/CliFxCommand.cs
Alexey Golub 9856e784f5 Add benchmarks
2019-07-28 22:08:02 +03:00

22 lines
511 B
C#

using System.Threading.Tasks;
using CliFx.Attributes;
using CliFx.Models;
namespace CliFx.Benchmarks.Commands
{
[Command]
public class CliFxCommand : ICommand
{
[CommandOption("str", 's')]
public string StrOption { get; set; }
[CommandOption("int", 'i')]
public int IntOption { get; set; }
[CommandOption("bool", 'b')]
public bool BoolOption { get; set; }
public Task ExecuteAsync(CommandContext context) => Task.CompletedTask;
}
}