feat: add remote control plane and whitelist reads
Build web service image / build (push) Successful in 1m53s
Build web service image / build (push) Successful in 1m53s
This commit is contained in:
@@ -47,6 +47,11 @@ try
|
||||
|
||||
switch (args[0])
|
||||
{
|
||||
case "remote":
|
||||
{
|
||||
WriteJson(await RemoteCliCommands.RunAsync(args, cancellationToken));
|
||||
return 0;
|
||||
}
|
||||
case "doctor":
|
||||
{
|
||||
var report = WechatDoctor.Run(cancellationToken);
|
||||
@@ -713,6 +718,9 @@ static string GetRuntimeLogPath(string[] values)
|
||||
|
||||
static int ValidateCommandLine(string[] values)
|
||||
{
|
||||
if (values[0] == "remote")
|
||||
return 60;
|
||||
|
||||
if (values[0] == "doctor")
|
||||
{
|
||||
ValidateOptions(values, 1, ["--timeout"], []);
|
||||
@@ -1024,6 +1032,10 @@ static int CountNodes(UiNodeSnapshot node) => 1 + node.Children.Sum(CountNodes);
|
||||
static void PrintHelp() => Console.WriteLine("""
|
||||
WxAgent.Host commands:
|
||||
serve --config <service.json>
|
||||
remote auth show|set|clear --config <remote.json>
|
||||
remote status show --config <remote.json> [--data-dir <dir>]
|
||||
remote probe run --config <remote.json> [--timeout 60]
|
||||
remote reporting show|enable|disable|account-add|account-enable|account-disable|allow|deny --config <remote.json>
|
||||
doctor [--timeout 30]
|
||||
diagnose --output <dir> [--baseline <ui-tree.json>] [--timeout 60]
|
||||
inspect-ui --output <path> [--window-title <title>] [--timeout 30]
|
||||
|
||||
Reference in New Issue
Block a user