mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
21 lines
547 B
C#
21 lines
547 B
C#
using System.Threading.Tasks;
|
|
using CliFx.Attributes;
|
|
using CliFx.Services;
|
|
|
|
namespace CliFx.Tests
|
|
{
|
|
public partial class CommandInitializerTests
|
|
{
|
|
[Command]
|
|
private class TestCommand : ICommand
|
|
{
|
|
[CommandOption("int", 'i', IsRequired = true)]
|
|
public int IntOption { get; set; } = 24;
|
|
|
|
[CommandOption("str", 's')]
|
|
public string StringOption { get; set; } = "foo bar";
|
|
|
|
public Task ExecuteAsync(IConsole console) => Task.CompletedTask;
|
|
}
|
|
}
|
|
} |