mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
15 lines
362 B
C#
15 lines
362 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using CliFx.Attributes;
|
|
|
|
namespace CliFx.Tests.Commands
|
|
{
|
|
[Command("cmd")]
|
|
public class GenericExceptionCommand : ICommand
|
|
{
|
|
[CommandOption("msg", 'm')]
|
|
public string? Message { get; set; }
|
|
|
|
public ValueTask ExecuteAsync(IConsole console) => throw new Exception(Message);
|
|
}
|
|
} |