feat(service): dispatch service verbs from Program entrypoint
This commit is contained in:
@@ -7,6 +7,11 @@ if (args.Length > 0 && args[0] is "send" or "peek" or "check" or "list")
|
||||
return await ClientCommands.RunAsync(args);
|
||||
}
|
||||
|
||||
if (args.Length > 0 && args[0] is "install-service" or "uninstall-service" or "start" or "stop" or "status")
|
||||
{
|
||||
return await ServiceCommands.RunAsync(args);
|
||||
}
|
||||
|
||||
var serveArgs = (args.Length > 0 && args[0] == "serve") ? args[1..] : args;
|
||||
|
||||
var explicitConfig = ClientCommands.GetOption(serveArgs, "--config");
|
||||
|
||||
Reference in New Issue
Block a user