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