Add CliFx support

This commit is contained in:
2021-06-04 19:06:13 +02:00
parent a554706903
commit 60a8c29fdd
3 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
using CliFx;
using CliFx.Attributes;
using CliFx.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Akari.Prototype.Server.Cli.Commands
{
[Command]
public class MainCommand : ICommand
{
public async ValueTask ExecuteAsync(IConsole console)
{
await Program.AspMain(Array.Empty<string>());
}
}
}