[feat] Abyssctl Basic functions
This commit is contained in:
20
abyssctl/App/Modules/InitOptions.cs
Normal file
20
abyssctl/App/Modules/InitOptions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using abyssctl.App.Attributes;
|
||||
using abyssctl.App.Interfaces;
|
||||
using CommandLine;
|
||||
|
||||
namespace abyssctl.App.Modules;
|
||||
|
||||
|
||||
[Module(103)]
|
||||
[Verb("init", HelpText = "Initialize abyss server")]
|
||||
public class InitOptions: IOptions
|
||||
{
|
||||
public async Task<int> Run()
|
||||
{
|
||||
var r = await App.CtlWriteRead<InitOptions>([]);
|
||||
Console.WriteLine($"Response Code: {r.Head}");
|
||||
Console.WriteLine($"Params: {string.Join(",", r.Params)}");
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user