@1023-ventures/piral-cli-rupel-csharp-codegen 中文文档教程
Overview
@1023-ventures/piral-cli-api-client-generator
是奥陶纪项目的 api 生成器
通过在包前加上 piral-cli
它可以被 pb
命令,piral 的cli 工具。
通过运行 pb rupel-csharp-codegen
,它将运行在 ./src/rupel-csharp-codegen 中找到的命令。 js
大多数在 cli 工具之外运行的代码都可以在 scripts 文件夹中找到,该
Scripts
downloadSwaggerJson.js
实用程序脚本将下载一个 swagger 模式文件并保存它到提供的目的地
generate.js
做很多繁重工作的部分。 为 openapi-generator 使用 docker 图像。
cli Commands
ordovician-open-api-generate
ordovician-open-api-generate 可以通过命令 pb ordovician-open-api-generate
运行
Overview
@1023-ventures/piral-cli-api-client-generator
is the api generator for ordovician projects
By prefixing the package with piral-cli
it is discoverable by the pb
command, a cli tool for piral.
By running pb rupel-csharp-codegen
it will run the command found in ./src/rupel-csharp-codegen.js
Most of the code that gets ran outside of the cli tool can be found in the scripts folder
Scripts
downloadSwaggerJson.js
Utility script that will download a swagger schema file and save it to the provided destination
generate.js
The piece that does a lot of heavy lifting. Uses a docker image for openapi-generator.
cli Commands
ordovician-open-api-generate
ordovician-open-api-generate can be ran via the command pb ordovician-open-api-generate