Add CliFx support
This commit is contained in:
19
Akari.Prototype.Server/Cli/Commands/MainCommand.cs
Normal file
19
Akari.Prototype.Server/Cli/Commands/MainCommand.cs
Normal 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>());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user