Files
Abyss/abyssctl/App/Modules/HelloOptions.cs
2025-10-05 11:41:06 +08:00

22 lines
513 B
C#

using abyssctl.App.Interfaces;
using abyssctl.Model;
using CommandLine;
namespace abyssctl.App.Modules;
[Verb("hello", HelpText = "Say hello to abyss server")]
public class HelloOptions: IOptions
{
public async Task<int> Run()
{
var r = await App.CtlWriteRead(new Ctl
{
Head = 100,
Params = []
});
Console.WriteLine($"Response Code: {r.Head}");
Console.WriteLine($"Params: {string.Join(",", r.Params)}");
return 0;
}
}