简体   繁体   English

如何从.sh脚本运行swagger2markup?

[英]How is it possible to run swagger2markup from .sh script?

Is there any way to start the asciidoc(or other doctype)-generation from .json files using swagger2markup in a .sh-file? 有什么方法可以使用.sh文件中的swagger2markup从.json文件开始生成asciidoc(或其他doctype)生成?

I know it is easily possible ( look there ) to create a Java class with swagger2markup that has this function, but I want to run the programm directly out of the .sh - File without creating new artifacts. 我知道这是很容易可以( 在那里寻找 ),以创建具有该功能swagger2markup一个Java类,但我想出来的。.SH直接运行PROGRAMM -文件,而无需创建新的工件。

Have a look at https://swagger2markup.readme.io/docs/cli . 看看https://swagger2markup.readme.io/docs/cli Its a Command line interface (CLI) for Swagger2Markup. 它是Swagger2Markup的命令行界面(CLI)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM