mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
18 lines
589 B
C#
18 lines
589 B
C#
using System.Threading.Tasks;
|
|
using CliFx.Attributes;
|
|
|
|
namespace CliFx.Tests.TestCommands
|
|
{
|
|
[Command("somerequired", Description = "SomeRequiredOptionsCommand description.")]
|
|
public class SomeRequiredOptionsCommand : ICommand
|
|
{
|
|
[CommandOption("option-f", 'f', IsRequired = true, Description = "OptionF description.")]
|
|
public string? OptionF { get; set; }
|
|
|
|
[CommandOption("option-g", 'g', Description = "OptionG description.")]
|
|
public string? OptionFG { get; set; }
|
|
|
|
public ValueTask ExecuteAsync(IConsole console) => default;
|
|
}
|
|
}
|