1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-06 07:44:57 +03:00

Update developer tools for JSON-RPC

This commit is contained in:
Daiyuu Nobori
2019-05-29 17:23:59 +09:00
parent 458906b151
commit 529d8f593c
30 changed files with 20092 additions and 439 deletions

View File

@ -1521,6 +1521,8 @@ namespace VPNServer_JSONRPC_CodeGen
w.WriteLine($"<a id=\"{rpc.Name.ToLowerInvariant()}\"></a>");
w.WriteLine($"## \"{rpc.Name}\" RPC API - {func_summary}");
w.WriteLine("### Description");
w.WriteLine(rpc.Symbol.GetDocumentStr());
var model = cs_tests.Model;
@ -1809,13 +1811,16 @@ namespace VPNServer_JSONRPC_CodeGen
foreach (RpcInfo rpc in rpc_list.Values)
{
doc_write_function(w, rpc);
if (rpc.Name.IndexOf("Vgs", StringComparison.Ordinal) == -1)
{
doc_write_function(w, rpc);
w.WriteLine("***");
w.WriteLine("***");
}
}
w.WriteLine($"Automatically generated at {timestamp.ToString("yyyy-MM-dd HH:mm:ss")} by vpnserver-jsonrpc-codegen. ");
w.WriteLine("Copyright (c) 2014 - " + DateTime.Now.Year + " [SoftEther VPN Project](https://www.softether.org/) under the Apache License 2.0. ");
w.WriteLine("Copyright (c) 2014-" + DateTime.Now.Year + " [SoftEther VPN Project](https://www.softether.org/) under the Apache License 2.0. ");
w.WriteLine();
ret.DocsRpc = w.ToString();
@ -1967,6 +1972,9 @@ namespace VPNServer_JSONRPC_CodeGen
save(Path.Combine(output_dir, "vpnrpc.ts"), ts_rpc, true);
save(Path.Combine(output_dir, "sample.ts"), ts_test, true);
save(Path.Combine(output_dir + "/../vpnserver-jsonrpc-client-nodejs-package/src/", "vpnrpc.ts"), ts_rpc, true);
save(Path.Combine(output_dir + "/../vpnserver-jsonrpc-client-nodejs-package/src/", "sample.ts"), ts_test, true);
}
void output_csharp(string output_dir)